Solved

Changing Fonts in a DataReport

Posted on 2004-08-26
6
1,177 Views
Last Modified: 2013-12-03
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").Font.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
0
Comment
Question by:cdsimmons
  • 3
6 Comments
 
LVL 10

Expert Comment

by:anv
ID: 11909838
hi cdsimmons

check this link

http://www.andreavb.com/forum/viewtopic_3161.html

hope it will help
0
 

Author Comment

by:cdsimmons
ID: 11993222
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.
0
 
LVL 10

Accepted Solution

by:
anv earned 500 total points
ID: 12003267
here 's the code

Private Sub Command1_Click()
DataReport1.Show
DataReport1.Font = "Palatino Linotype"
End Sub
0
 
LVL 10

Expert Comment

by:anv
ID: 12346049
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..
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now