Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2005, 05:41 AM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with colors

Hello, I use the command
Set Application.Printer = Application.Printers(pdfPrinter)
to switch from the default printer to the pdf printer but the pdf printer generates black and white pdf; when I use the pdf printer outside vba, the generated pdf are colored; so it bust be something with the code.
Any suggestions?

 
Old January 11th, 2005, 09:48 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

   I know there is a .ColorMode setting for the Printer object. I am not sure how to apply it.

   Please see: http://msdn.microsoft.com/library/de...oColorMode.asp for more info.

   In the VBA Language Reference, look up Microsoft Access Visual Basic Reference, Then Objects, then Printer Object.

I hope this helps.


mmcdonal
 
Old January 11th, 2005, 12:28 PM
Authorized User
 
Join Date: Feb 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chacquard
Default


I use "Printer.ColorMode = acPRCMColor" or acPRCMMonochorme
I hope it works for you :)

Chantal



 
Old January 11th, 2005, 12:29 PM
Authorized User
 
Join Date: Feb 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to chacquard
Default

p.s. I use this command before printing the report

Chantal

 
Old January 21st, 2005, 11:00 AM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, that's the problem...I tried but it won't work!
The only method is saving the printer properties in the report structure but it is not a good method because you have to do it every time you install the application (and we're upgrading it very often rigth now!) and on every machine!
I don't know why it doesn't work via code!






Similar Threads
Thread Thread Starter Forum Replies Last Post
no colors when printing Hylsan Beginning PHP 0 May 28th, 2007 05:06 AM
Alternating colors in table crabjoe Classic ASP Basics 3 March 12th, 2007 09:28 AM
Colors scandalous Access 1 February 8th, 2007 01:01 PM
problems changing colors demdivers VB.NET 2002/2003 Basics 0 September 27th, 2005 08:07 AM
How to highlight 3 keywords in 3 colors? gilgalbiblewheel Classic ASP Databases 2 October 20th, 2004 06:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.