cdsimmons
asked on
Changing Fonts in a DataReport
I am using a DataReport and need to change the fonts within the datareport to epson fonts, which you can see in word pad and access but not in the vb properties box.
I have tried changing the fonts in the initialize method using
With Sections("SectionName")
.Controls("LabelName").Fon t.Name = "FontA11" 'Epson font
End With
The default printer is set to the epson printer, which epson suggested doing but this still doesn't work for changing the fonts.
Am I doing this correctly? I have tried using the Printer object to change the fonts and then print the datareport but that does not work.
No one has been able to answer this yet, any help is greatly appreciated
I have tried changing the fonts in the initialize method using
With Sections("SectionName")
.Controls("LabelName").Fon
End With
The default printer is set to the epson printer, which epson suggested doing but this still doesn't work for changing the fonts.
Am I doing this correctly? I have tried using the Printer object to change the fonts and then print the datareport but that does not work.
No one has been able to answer this yet, any help is greatly appreciated
ASKER
Unfortunatly that does not help. That deals with the printer object and I needed to change the fonts in the datareport. I thought I had figured it out by declaring a new stdfont in the datareport initialize method but that does not work either.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
check if the font u want to use is available in the fonts collection of the windows...
then u can replace the above line of changing font with that code and it will work..
then u can replace the above line of changing font with that code and it will work..
check this link
http://www.andreavb.com/forum/viewtopic_3161.html
hope it will help