Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 11th, 2005, 05:41 AM
Registered User
 
Join Date: Dec 2004
Location: , , .
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?

Reply With Quote
  #2 (permalink)  
Old January 11th, 2005, 09:48 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #3 (permalink)  
Old January 11th, 2005, 12:28 PM
Authorized User
 
Join Date: Feb 2004
Location: , , Canada.
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



Reply With Quote
  #4 (permalink)  
Old January 11th, 2005, 12:29 PM
Authorized User
 
Join Date: Feb 2004
Location: , , Canada.
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

Reply With Quote
  #5 (permalink)  
Old January 21st, 2005, 11:00 AM
Registered User
 
Join Date: Dec 2004
Location: , , .
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!

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.