Problem when printing PS/PDF file via ActiveX

S

Stéphane CURCIO

Hi all,

Here goes the problem I'm struggling with for a couple of days.

We have a W2K SP3 workstation running a custom MFC/VC++ application.
The workstation is connected to lan and can access to a networked printer.
The networked printer is an HP LaserJet 8000.
A local HP LaserJet 6L has also been used for test purposes.


1) What works

Opening for example "REPORT.PDF" file in Acrobat Reader and sending it to
the printer works perfectly.
I can see in Windows spooler "REPORT.PDF" job.

All jobs sent to the local printer worked fine.


2) What does not work

Now the custom application does the following simple operations using the
Adobe PDF ActiveX :

m_Pdf.LoadFile(filename);
m_Pdf.printAllFit(false);
m_Pdf.Invalidate(true);


I've checked that filename is not corrupted when calling above code, I've
tried shorter file names, etc ...
- I get, most of time, an output as text file rather than PostScript
- I always get a corrupted job name in the spooler queue like "oca0027....
..PDF" melted with some non ASCII characters rather than "REPORT.PDF". Note :
this happens even with local printer giving a perfect output ?!

Any idea on this one ? Where will you start digging ?

Thanks,
Stephane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top