473,767 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change font on report

Correct me if I'm wrong, but is it impossible to change the font in a report
field when in print preview (MDE database) or can it only be done in design
view in the MDB database.
Part of my database is used to print name tags for functions, and it would
be nice for the operator to have a choice of different fonts, colours and
backgrounds.
I have a copy of Terry Kreft and Stephen Lebans font selector mdb

Thanks

Phil
Jun 27 '08 #1
3 5631
Phil Stanton wrote:
Correct me if I'm wrong, but is it impossible to change the font in a
report field when in print preview (MDE database) or can it only be
done in design view in the MDB database.
Part of my database is used to print name tags for functions, and it
would be nice for the operator to have a choice of different fonts,
colours and backgrounds.
I have a copy of Terry Kreft and Stephen Lebans font selector mdb

Thanks

Phil
You can change the font (temporarily) using code in the various events of
the report itself. That means that you could give the user a means to
choose the font before they preview, but once opened in preview they would
have to close it, change the font choice, and then preview it again. You
cannot apply the change live on the preview window.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jun 27 '08 #2
On Sun, 13 Apr 2008 12:06:07 -0400, Rick Brandt <ri*********@ho tmail.com
wrote:
You can change the font (temporarily) using code in the various eventsof
the report itself. That means that you could give the user a means to
choose the font before they preview, but once opened in preview they
would
have to close it, change the font choice, and then preview it again. You
cannot apply the change live on the preview window.
With Northwinds 2007 this allows me to change the font for the controls in
Customer Address Book report on the fly and to print in whatever font I
have chosen.
Of course, if I were going to use this I'd create something kinder that an
input box as a font chooser.
Seems to work OK after converted to ACCDE as well.

Private Sub Report_DblClick (Cancel As Integer)
Dim ctrl As control
Dim font$
font = GetFontName
On Error Resume Next
For Each ctrl In Me.Controls
ctrl.FontName = font
Next ctrl
End Sub

Public Function GetFontName$()
GetFontName = InputBox("Font Name")
End Function

Perhaps, this isn't what is being discussed, of course. I'm not sure.

--
lyle fairfield
Jun 27 '08 #3
Thanks guys

Found the easiest way was to create a table with the font charactaristics
such as name, size, colour bold etc by loading the information from the
standard font and colour picker dialogue boxes, then format the report
fields on the OnOpen Event of the report

Thanks agin for your help

Phil
"lyle fairfield" <ly******@yah00 .seeaywrote in message
news:op******** *******@vostro-desktop.budu3.o n.cogeco.ca...
On Sun, 13 Apr 2008 12:06:07 -0400, Rick Brandt <ri*********@ho tmail.com>
wrote:
You can change the font (temporarily) using code in the various events of
the report itself. That means that you could give the user a means to
choose the font before they preview, but once opened in preview they
would
have to close it, change the font choice, and then preview it again. You
cannot apply the change live on the preview window.
With Northwinds 2007 this allows me to change the font for the controls in
Customer Address Book report on the fly and to print in whatever font I
have chosen.
Of course, if I were going to use this I'd create something kinder that an
input box as a font chooser.
Seems to work OK after converted to ACCDE as well.

Private Sub Report_DblClick (Cancel As Integer)
Dim ctrl As control
Dim font$
font = GetFontName
On Error Resume Next
For Each ctrl In Me.Controls
ctrl.FontName = font
Next ctrl
End Sub

Public Function GetFontName$()
GetFontName = InputBox("Font Name")
End Function

Perhaps, this isn't what is being discussed, of course. I'm not sure.

--
lyle fairfield
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
27847
by: dixie | last post by:
I want to be able to set the font size and font type for text in a text box on a report using VBA. I wan't to be able to control it from a setting in a table. The problem is that I don't know the syntax for setting either font type or font size for a text box on a report. Does anyone know? Help. Please! dixie
5
12727
by: Steve | last post by:
I need a way to programatically change the width of a textbox to display all the data knowing the font, font size and number of characters. Does any oone know of a reference somewhere ot a way to determine the width in twips for say Times New Roman 12, 35 characters or say Arial 11, 26 characters? Thanks, Steve
1
2654
by: Aaron Bronow | last post by:
I have an asp.net application which loads a Crystal Reports ReportDocument, passes in parameters for selecting data from the report's database connection, renders the report for previewing on the client then allows the user to print the report on a networked printer. To avoid having to launch an external application on the client I use a server-side print method. When I call ReportDocument.PrintToPrinter the report comes out fine but the...
3
1492
by: Chubbly Geezer | last post by:
I'm using a particular font (for credit card symbols) within a crystal report which looks fine when I preview, however when I run the report with real data, the font is now shown correctly. It seems to revert back to a standard font and displays letters instead of card symbols. Any ideas.? Can I embed a font or include one in my VB app.? Thanks
1
7854
by: ken | last post by:
Hi, How do you change the font for the data labels on your bar graph report/chart? I have 24 series, and when I change the font of the data label for one series that does not change them all... Also in design view I only have 3 series displayed...so I need a way to change all of them at once... If anyone knows how to do this I would really appreciate a hint. Thanks
4
3378
by: Ross Presser | last post by:
I'm feeling very stupid about this ... pdf2html (http://pdf2html.sourceforge.net) is an app that reads a PDF and can generate HTML or XML; in my case I'm using the XML. The PDF I'm working with is a concatenation of many reports; my objective is to find the first page of each report, which I've discovered can be found in this particular instance by looking for an xml element with a particular attribute "left" equal to 277. So I want...
3
3819
by: iszact | last post by:
Greetings all.. I hope you guys can help me with this. I've been doing a database for my microbiology labs, but having difficulties to change a species name into italic font. Here's what I want to do: Mycobacterium tuberculosis NOT isolated Can anybody please help me with this so that ONLY "Mycobacterium tuberculosis" appear in italic font in database form, and report.
1
1541
by: krikaran adel | last post by:
Hi, First of all I found your tips very usfull, of course these tips becuas of all years working in access. really greet site. my Quation: is this away to change fonts in reports so the same field in diffrent record could have diffrent font.
0
1566
by: Majid Bhutta | last post by:
Hi Dears! I am using crystal report 10 with C# 2005. I have an issue that i want to change the font of Group Header Text that is visible when we click on Toggle Group Tree button and a tree pane is visible towards the left side of report viewer. I have goggled a lot but unable to find any hint. Any idea or help would be highly appreciated . Thanks in advance.
0
9405
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10013
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9960
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9841
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8838
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5280
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5424
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3930
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3533
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.