Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Changing Fonts in a DataReport

Posted on 2004-08-26
6
Medium Priority
?
1,201 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Suggested Courses

636 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