trichview.com

trichview.support




Re: PDF export - advice needed


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/02/2004 20:35:57


> I'd like to print to US Letter format or A4 format. How do I

> obtain the width and height values for these? Which unit do

> the TRVReportHelper.Init() and TWPPDFPrinter.StartPage()

> methods use - inches, centimeters, pixels?


Pixels.

This demo uses Screen.PixelsPerInch resolution.

So, if you have page width defined in inches, pass here

  Round(SizeInches*Screen.PixelsPerInch).

As I can see in MS Word,

A4 = 8.27" x 11.69"

Letter (is it US Letter?) = 8.5" x 11"


>

>

> > About hyperlinks: TRichView allows to export hyperlinks using

> > RVReportHelper: OnDrawHyperlink event. This event provides hyperlink

> > rectangle and the location in document, so you can obtain the target.

> > So, we have hyperlink rectangle and target, but unfortunately I do not

know

> > how to create a hyperlink with wPDF. You can ask Julian about it.

>

> The demo already seems to work with hyperlinks.


In my tests, this code does not work with URLs.

May be it works for other kinds of links



> > I can create an example with header and footer, but I need to know from

> > where to get them. Should they be read from files or generated

> > automatically?

>

> I'd very much appreciate an example with header and footer.

> The header should come from another TRichViewEdit, and the

> footer from another one.


I'll create an example tomorrow.





Powered by ABC Amber Outlook Express Converter