Page 1 of 1

TprintPreviwe and PDF

PostPosted: September 13th, 2006, 11:48 am
by St
Hello

is there any possibility to view a PDF file with PrintPreview component? And if not, are there any plans to implement it in the next release.

St

PostPosted: September 13th, 2006, 12:12 pm
by Johnny_Bit
No, It's at the time impossible straight out of the box. However you can get for free pdf rendering library and render pdf on pages of print preview.

As for adding such feature, I don't deveop it, but I'd opt for rather not doing it. I simplysee no sense in that.

Re: TprintPreviwe and PDF

PostPosted: September 14th, 2006, 12:26 am
by kokkoras
St wrote:Hello, is there any possibility to view a PDF file with PrintPreview component? And if not, are there any plans to implement it in the next release. St


An easy way to view PDFs within your app is to include the Acrobat activeX in delphi and then use the generated component to display the PDF. Of course, this requires that Acrobat is installed in the system. since Acrobat is free and everybody has it installed I can see no reason why you want to include such a functionality in your app (apart from integration).

Othen solution is to use one of the many components capable of displaying PDFs. The drawback is that most of them are not free.

PostPosted: September 15th, 2006, 8:47 am
by St
Thank you for your answers.

I know about the possibility of using activeX component. But the reason for my question was as follows.
In my application I’m already using PrintPreview component. It is really great. I’m using it for viewing and printing some generated reports and couple of RTF files. And now I need to view also PDF files. Off course I can use activeX component, but it would be nice to have the same user interface for viewing all reports and RTF and PDF files.

PostPosted: September 15th, 2006, 12:20 pm
by Johnny_Bit
so do as I said, render pdf pages on print-preview pages. there are libs for that... GNU'ed I think.