VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1[2]345678910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 06:36:39 11/06/03 Thu
Author: JK
Subject: Re: PLS check my code again for PRINT JOB ?
In reply to: Michel 's message, "Re: PRINT JOB ?" on 21:33:17 11/05/03 Wed



Hi Michel,

I tested a muti page print as your mention like below,
but my code printed only one page in one print job.
Please chech why my code print thr first page only.

GraphicPrinter := TDibGraphicPrinter.Create;
GraphicPrinter.UsePrintJob := False;
GraphicPrinter.PrintMode := pmOriginalSize;
Printer.PrinterIndex := -1;
Printer.BeginDoc;
if ImageScrollBox.FrameCount > 0 then begin
for nCounter := 1 to ImageScrollBox.FrameCount do begin
ImageScrollBox.CurrentFrame := nCounter;
GraphicPrinter.Print(ImageScrollBox.Graphic);
end;
end else begin
GraphicPrinter.Print(ImageScrollBox.Graphic);
end;
Printer.EndDoc;
GraphicPrinter.Free;

Many thnaks,JK




>Hi JK,
>
>By default, TDibGraphicPrinter creates one print job
>everytime you call Print.
>
>To print multiple pages on one job you can do this:
>
>GraphicPrinter.UsePrintJob := False;
>Printer.BeginDoc;
>- Print all pages -
>Printer.EndDoc;
>
>Best regards,
>
>Michel
>
>>
>> If i printed a multi page tif having 3 pages,Only one
>> page was printed. I solved this problem as i sent
>each
>> print job to print spool, But i think this is not
>>correct.
>> So i hope to print a multi pages with a print job.
>> How can i solve this ?
>>
>> Regards,JK

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.