| View previous topic :: View next topic |
| Author |
Message |
St Member
Joined: 08 Sep 2005 Posts: 6 Location: Brno, Czech Republic
|
Posted: 13/09/06 11:48 Post subject: TprintPreviwe and PDF |
|
|
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
|
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 274
|
Posted: 13/09/06 12:12 Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
kokkoras Senior Member

Joined: 12 Mar 2005 Posts: 250 Location: Thessaloniki, Greece
|
Posted: 14/09/06 00:26 Post subject: Re: TprintPreviwe and PDF |
|
|
| 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.
_________________ Fotis |
|
| Back to top |
|
 |
St Member
Joined: 08 Sep 2005 Posts: 6 Location: Brno, Czech Republic
|
Posted: 15/09/06 08:47 Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 274
|
Posted: 15/09/06 12:20 Post subject: |
|
|
| so do as I said, render pdf pages on print-preview pages. there are libs for that... GNU'ed I think.
|
|
| Back to top |
|
 |
|