Connecting Tech Pros Worldwide Help | Site Map

Printing color to Adobe PDF printer Driver Problem

Member
 
Join Date: Nov 2006
Posts: 118
#1: Sep 25 '07
Hi there,

I have some code that prints a report to a pdf driver (Adobe). I am using this code on two different machines, and hence two different installations of Access. On one machine the pdf prints in color, on the other it prints only in black and white.

I have traced the problem to the Adobe PDF printer properties menu WITHIN Access. On the machine that works, the color button is selected on the "Paper/Quality" tab by default, whether I view this property from within Access or from the Printers folder via that Start menu.

However, on the machine for which only black and white pdf's are printed, when viewing the Adobe PDF printer properties from within Access, the default color option selected is always black and white, even though this contradicts the printer properties viewed through the Printers folder on the machine.

It therefore seems that in one case Access is modifying the default properties of the printer driver. Does anyone know how to prevent this from happening?

Thanks
Member
 
Join Date: Nov 2006
Posts: 118
#2: Sep 25 '07

re: Printing color to Adobe PDF printer Driver Problem


Well, I've managed to fix the problem, but I'm still not really sure what is going on.

I tried changing Application.printer.color property, and while this did indeed change the printer driver property within the Access application it did not produce color pdf's. I then tried changing the printer.color property of the report I was opening (and therefore printing to the pdf) and this fixed the problem. For some reason it appears that you have to explicitly set the color printing properties of a report in order to get the same result on all reports.

If anyone has any thoughts on this I would be interested in hearing them.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,706
#3: Sep 26 '07

re: Printing color to Adobe PDF printer Driver Problem


You have (accidentally) posted this question in the Access Articles section. This is NOT an article.
I'm moving this to the main Access questions forum.

MODERATOR.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,706
#4: Sep 26 '07

re: Printing color to Adobe PDF printer Driver Problem


Quote:

Originally Posted by billelev

...
For some reason it appears that you have to explicitly set the color printing properties of a report in order to get the same result on all reports.
...

Do you mean on all installations?
That would be the intended effect I would have thought. The ability to set defaults for the printers on a PC should override the convenience of a coder coding for various machines. It is probably possible to get a Domain Administrator to force this, but surely the correct approach when insisting that the result is defined by the coder rather than the choice of the user should be to include it in the code.
Reply