Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Print to file problem.

edited January 2002 in General
Hi to all,

when I print a report that is designed for a matrix printer to a text file
with file type report emulation and I set those option from the print dialog
all works fine; but if I do the same thing setting the properties from my
application, the lines that are printed at the end of this reports aren't
printed correctly: each line are printed into three rows (a lines are
composed with the character '-').

In the print dialog close event i set those properties:

If (Standardreport.DeviceType = dtPrinter) and
(StandardReport.PrintDialog.ModalResult = mrOk) and
not StandardReport.PrintDialog.PrintToFile then
begin
standardreport.PrintDialog.PrintToFile := True;
standardreport.PrintDialog.DeviceType := dtReportTextFile;
standardreport.PrintDialog.TextFileName := GetWindowsTempFolder +
'\'+ fReportName + '.txt';
end;

I have noticed that this happens when the printer that I select is a matrix
printer; if I do the same thing selecting a laser printer from the print
dialog all works fine.

Does anybody have a hint for resolve this problem?

Comments

  • edited January 2002
    What does the resulting report emulation text file look like, when the dot
    matrix is selected?

    The selected printer's canvas is used to determine the pagination. The dot
    matrix driver is probably returning a different available area on the page,
    than what the laser printer is able to print. Try increasing the margins of
    the page to account for the area that the dot matrix printer can't print to.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.