dbTalk Databases Forums  

Font colour shows in report preview but not printout

comp.databases.ms-access comp.databases.ms-access


Discuss Font colour shows in report preview but not printout in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Owen
 
Posts: n/a

Default Font colour shows in report preview but not printout - 09-27-2011 , 12:14 AM






I have an mde written in Access 97, converted to A2000, and used by
all flavours of Access from 97 to 2010. One of the reports includes
code to change the colour of one field from black to red, by setting
the ForeColor property of the report field when the report opens.

If Forms![SetupF]![ColourReminders] = True Then
If [DocumentType] Like "*Reminder*" Then
[OverdueMessage].ForeColor = 255
End If
End If

This works fine on the preview, and usually on the printout. However,
some clients find that the printed report either prints the red field
in black, or a variant of colour that is not red. This is despite the
printer printing colour perfectly well from other applications.
Reinstalling the printer driver does not help. Any suggestions?

Owen

Reply With Quote
  #2  
Old   
Jim Devenish
 
Posts: n/a

Default Re: Font colour shows in report preview but not printout - 09-27-2011 , 10:18 AM






On Sep 27, 5:14*am, Owen <goo... (AT) healthbase (DOT) com.au> wrote:
Quote:
I have an mde written in Access 97, converted to A2000, and used by
all flavours of Access from 97 to 2010. One of the reports includes
code to change the colour of one field from black to red, by setting
the ForeColor property of the report field when the report opens.

* * * * If Forms![SetupF]![ColourReminders] = True Then
* * * * * * If [DocumentType] Like "*Reminder*" Then
* * * * * * * * [OverdueMessage].ForeColor = 255
* * * * * * End If
* * * * End If

This works fine on the preview, and usually on the printout. However,
some clients find that the printed report either prints the red field
in black, or a variant of colour that is not red. This is despite the
printer printing colour perfectly well from other applications.
Reinstalling the printer driver does not help. Any suggestions?

Owen
Would it not be better to write:
[OverdueMessage].ForeColor = RGB(255,0,0)

??

Jim

Reply With Quote
  #3  
Old   
Jim Devenish
 
Posts: n/a

Default Re: Font colour shows in report preview but not printout - 09-27-2011 , 10:32 AM



On Sep 27, 5:14*am, Owen <goo... (AT) healthbase (DOT) com.au> wrote:
Quote:
I have an mde written in Access 97, converted to A2000, and used by
all flavours of Access from 97 to 2010. One of the reports includes
code to change the colour of one field from black to red, by setting
the ForeColor property of the report field when the report opens.

* * * * If Forms![SetupF]![ColourReminders] = True Then
* * * * * * If [DocumentType] Like "*Reminder*" Then
* * * * * * * * [OverdueMessage].ForeColor = 255
* * * * * * End If
* * * * End If

This works fine on the preview, and usually on the printout. However,
some clients find that the printed report either prints the red field
in black, or a variant of colour that is not red. This is despite the
printer printing colour perfectly well from other applications.
Reinstalling the printer driver does not help. Any suggestions?

Owen
Would it not be better to write:
[OverdueMessage].ForeColor = RGB(255,0,0)

??


Jim

Reply With Quote
  #4  
Old   
Owen
 
Posts: n/a

Default Re: Font colour shows in report preview but not printout - 09-27-2011 , 11:03 PM



Hi Jim,

Thanks, I guess so, but RGB(255,0,0) evaluates to 255 anyway, and
makes no difference to this problem.

Owen

Reply With Quote
  #5  
Old   
Phil
 
Posts: n/a

Default Re: Font colour shows in report preview but not printout - 09-28-2011 , 02:58 AM



On 28/09/2011 05:03:33, Owen wrote:
Quote:
Hi Jim,

Thanks, I guess so, but RGB(255,0,0) evaluates to 255 anyway, and
makes no difference to this problem.

Owen

Random thoughts.
Code looks OK and the problem seems to be with the printers, not Access.
Are the reports printed on the Default Printer, if so how are they set up? -
for each location Have the printers run out of red ink?
Have the printer drivers been updated?
Phil

Reply With Quote
  #6  
Old   
Owen
 
Posts: n/a

Default Re: Font colour shows in report preview but not printout - 10-02-2011 , 09:26 PM



Drivers are up to date, ink is full, printer is default.
Owen

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.