trichview.com

trichview.support




Re: PrintPreview


Return to index


Author

Message

Andy Rohr

Posted: 12/08/2004 11:19:06


Sergey Tkachenko schrieb:


> May be this demo will be useful for you:

> http://www.trichview.com/support/files/a4.zip

> It can draw A4 page both in screen and printer resolution.

> When using screen resolution, printer is not necessary.


I already checked this demo. But this one does not use the RVPrintPreview

component, which I would like to use, because there is much comfort already done

for me (zooming, goto nextpage, ...), and for generating the PDF I just can do


MyGtRichViewInterface.RenderDocument(MyRVPrint, False);


an PDF is generated with headers/footers, papersize, papermargins like I

"designed" it for the RVPreview.


I just need to provide the information about my virtual printer to RVPrint

somehow. Unfortunately I can not just instanciate a TPrinter and set the

papersize, and then make it the defaultprinter trough SetPrinter(MyPrinter).


Is there not way to do such a thing? Maybe I can use a TRVReportHelper instead

of TRVPrint and connect it to my RVPrintPreview, but there are no header/footer

for this, right?


Thanks.



>>Hi

>>

>>I use RV as a document creation engine. I generate a document entirely

>

> from

>

>>code. Then I want to preview that document with RVPrintPreview. Later I do

>>export the Document to RTF, HTML and PDF (through gnostice eDocEngine). So

>

> I

>

>>want a preview indendent from an installed printer (e.g. there's no

>

> printer

>

>>installed). But I want to define the page properties by myself (not

>>"automatically" trough the (default)printers papersize.

>>

>>I thought maybe there is a component like "virtual printer" i can use and

>>configure (papersize, ...) and then do: SetPrinter(MyVirtualPrinter) to

>

> make

>

>>RVPreview that virtual printer. Does anbody know sich a component? Or are

>

> there

>

>>better approaches?

>>

>>Thanks, Andy.

>

>

>

>





Powered by ABC Amber Outlook Express Converter