Print File to GDI Printers

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jayadevu
Posts: 240
Joined: Tue May 19, 2009 7:10 am

Print File to GDI Printers

Post by jayadevu »

Hi All,

Is there a way to print the entire text file to a GDI printer with Preview at one go ? (something like Copy file to PRN but with Preview).

The Long method involves opening the file, reading and printing the file, line by line using HB Print class.

Warm regards,

Jayadev U
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Print File to GDI Printers

Post by mol »

If I understand your intensions good, you can use my moldruk.prg emulator (look at the forum, with some modifications) for PREVIEW text file (containing control codes???) and use WIN_PRINTFILERAW( cPrinter, cFileName, cPrintJobTitle ) function for sending it to printer.
jayadevu
Posts: 240
Joined: Tue May 19, 2009 7:10 am

Re: Print File to GDI Printers

Post by jayadevu »

Dear Marek Olszewski,

Many thanks for your reply, I shall go through the program and revert.

Warm regards,

Jayadev
Post Reply