Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adobe TPDF ActiveX component

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
Does anyone have any experience of using the Adobe TPDF ActiveX component in Delphi ?
I've only successfully gotten as far as placing the component on a form and setting the 'src' property such that I am able to view a PDF file in the viewer.
If I try to change the file to view - that is by changing the 'src' property to another file path (or using the LoadFile()' procedure) I get an Access Violation.
How should I be changing which file to view at run-time ?
Do I need to Disable/Enable or something like that ?
I've tried different things but seem to be missing the point.
Similarly am I able to create a TPDF component at run-time, not have it visible and use it to directly print a PDF file without having to view it on screen.
Any help would be appreciated.
Steve
 
Where can I download this component?
Maybe I can find out some more stuff for you?! BobbaFet

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com

&quot;<beer brand> is like making love in a cano...
it's <f-word + ing> close to water !!!&quot;
- Monty Python's Flying Circus, 1969/70
 
If you have adobe acrobat reader, it is already installed on you computer. Go to component , install activeX Control S. van Els
SAvanEls@cq-link.sr
 
ow ok ill figure it out :) BobbaFet

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com

&quot;<beer brand> is like making love in a cano...
it's <f-word + ing> close to water !!!&quot;
- Monty Python's Flying Circus, 1969/70
 
As luck would have it I appear to have solved my problems with this. I am able to use the 'LoadFile()' procedure for the TPDF components. I think my mistake was in trying to pass the 'LoadFile()' procedure a String rather than a WideString, when I set up a 'var' of type WideString and passed this to the procedure it solved the issue.
I just can't seem to get rid of the panel on the left hand side in the previewing of the PDF files - I am able to hide the toolbar at the top using the appropriate command (I think it's setShowToolBar()' or similar) but cannot hide the panel on the left showing the file breakdown (i.e. sections or chapter headings).
Anyone advise me on this one ?
Thanks again
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top