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

Formfeed on a 9" x 3" paper sheet

edited January 2003 in Devices
Hi,
I need to print on a page 9" width and 3" height with a dot matrix
printer.
I set the paper height and with with those sizes, but when the print ends it
launches a long formfeed as it was an A4 or letter paper...
Since I don't know if it is a matter of configuation, could you please tell
me wich is the proper way of setting it?
Is it possible not to do any form feed at the end of the printing process?

I used RB 6.03 and W2K.
thanks,

Marco Carboni.

Comments

  • edited January 2003
    On a dot matirx, what you could try is to print a text file to the printer.
    Use the report emulation text file to create the file, then send that to the
    printer. Here is how to print a text file to the printer:

    -----------------------------------------------
    Tech Tip: Send TextFile to Printer
    -----------------------------------------------

    I designed a application that exports the report to a .txt
    file using ReportTextFile device.

    How can I Send the text file to the printer?

    The following procedure will send the .txt file to
    the printer using Delphi's TPrinter object.



    uses
    Printers;


    procedure SendTextFileToPrinter(aFileName: String);
    var
    lsLines: TStringList;
    lOutputFile: TextFile;
    liIndex: Integer;
    begin

    lsLines := TStringList.Create;

    try
    lsLines.LoadFromFile(aFileName);

    AssignPrn(lOutputFile);
    Rewrite(lOutputFile);

    for liIndex := 0 to lsLines.Count-1 do
    Writeln(lOutputFile, lsLines[liIndex]);

    CloseFile(lOutputFile);

    finally
    lsLines.Free;
    end;


    end;



    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.