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

Problem of printing report to dot matrix printer

edited March 2008 in Devices
Hi,



Recently, I am trying to print report to a dot matrix printer. I follow the
example shown in manual of TExtraDevices:



// Specify the port to print to (LPT1, COM1, etc)

// This can also be specified in the ExtraOptions component

ExtraOptions1.DotMatrix.Port := 'LPT1';

// Optionially specify the characters and lines per inch

ExtraOptions1.DotMatrix.CharsPerInch := cs10CPI;

ExtraOptions1.DotMatrix.LinesPerInch := ls6CPI;

Rpt.AllowPrintToFile := True;

Rpt.ShowPrintDialog := False;

Rpt.DeviceType := 'PrinterFile';

Rpt.Print;



However, when I run the program, system raise exception: class EFCreateError
with message ??Cannot create file ???? ????.



What can I do to solve this problem?



I am using Report Builder version 10.02, TExtraDevices version 2.92, Delphi
7 and Windows XP.



Regards,

Queenie Kwan

Comments

This discussion has been closed.