[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Printing a PDF

Hi there,

I am trying to print a PDF and having masive grief!
I can print once, but when I click the print button again I get exception errors etc
I have tried importing the PDF active x control and at the moment I am loading the pdf in a webbrowser and then getting that to print.

First time is ok, second time falls over.
Using Acrobat Reader 7 onthe machine.

:-(
0
wildzero
Asked:
wildzero
1 Solution
 
Irwin SantosComputer Integration SpecialistCommented:
reinstall Acrobat
0
 
wildzeroAuthor Commented:
happens on 3 seperate machines
0
 
Irwin SantosComputer Integration SpecialistCommented:
what are you printing?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
wildzeroAuthor Commented:
a pdf
0
 
wildzeroAuthor Commented:
even just doing this
ShellExecute(0, 'open', PAnsiChar(savepath), nil, nil, SW_SHOW);

- opens the pdf ok
then doing it again (click the open button) causes an access violation!
0
 
Irwin SantosComputer Integration SpecialistCommented:
to clarify, you are printing a PDF and are NOT creating it...such as you downloaded it from the Internet and want to send it off to your printer?

is it a network printer?  if so, reinstall the printer drivers on the hosting server.  If not..how big is this PDF?
0
 
Irwin SantosComputer Integration SpecialistCommented:
what happens if you do another PDF file? does that work?
0
 
wildzeroAuthor Commented:
The pdf is already made and exists.
I can open the PDF and/or print the PDF ok once
If I try it again I get an access violation error
If I close the program and open it again I can then open the pdf etc (but not twice)

I just tested on a machine with Adobe Acrobat 6 and that works, so the problem only happens when Acrobat Reader 7 is installed
This is happening on 3 computers, one of which is at a seperate location (printer, etc)

0
 
Irwin SantosComputer Integration SpecialistCommented:
http://www.adobe.com/products/acrobat/readstep2.html
The latest version 7.0.7... perhaps if you don't have that.. then download the latest from the link above and install.
0
 
wildzeroAuthor Commented:
Already running 7.0.7 :-(
0
 
Irwin SantosComputer Integration SpecialistCommented:
is that a public PDF that I can view (or at least attempt to open)?
0
 
wildzeroAuthor Commented:
OMG :(
I feel really embarsed....
After much debugging
(showmessage styles) I found the error was because of a Image.Free call....
so on the second run the it would access error because of that...

wow... I feel like an idiot.
the machine with acrobat 6 wasn't supplying an image so that section was skipped..

Thanks a heap for your efforts irwinpks
0
 
Irwin SantosComputer Integration SpecialistCommented:
good deal you found that...I was pulling hairs for ya'
0
 
wildzeroAuthor Commented:
Well it drove me nuts
But it's moments like this that make me enjoy coding.. when you figure out something that seems totally ill-logical :D
0
 
Scay7Commented:
Well all hear ya wildzero
0
 
ee_ai_constructCommented:
Closed, 500 points refunded.
ee_ai_construct
Community Support Moderator
replacement part #xm34
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now