473,382 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Breaking the 127 point font size barrier with MS Forms 2.0 OCX and VB6

I have searched this group for ways to create jumbo fonts in my Access
forms and reports. Unlike MS Word and MS Excel, Access has a 127 point
font limit. (About 1.75" tall) I'm referring to bound controls here,
so pasting a bitmap into the form is not a solution. I am using Access
2000 (9.0.4402 SR-1).

After playing with some ActiveX controls, I found the Microsoft Forms
2.0 textbox looked promising. I placed the control in a form and
assigned a control source under the object's data properties equal to
a field in my recordsource. Then I was able to manipulate the font
size with form's onCurrent event:

Private Sub Form_Current()
Me!myControl.FontSize = 250
Me!myControl.FontWeight = 600
Me!myControl.WordWrap = False
End Sub

I couldn't figure out how to change the font style, but the default MS
Sans Serif is acceptable for my purposes.

Here's where the problem arose, and the reason for my post:

When you view the form on-screen, the control displays perfectly.
However, the control is either partially cut off or is blank when
previewed or printed.

After fumbling around for quite a while, I discovered the following
article in the MS KnowledgeBase that says this is a known bug of
UserControls (OCX) that are created in Visual Basic.

http://support.microsoft.com/default.../q181/8/77.asp

I'm not 100% sure this is the same situation, but the article says
that the Visual Basic virtual machine MSVBVM50.DLL is the cause and
VB6.0 solves the problem. I found both MSVBVM50.DLL and MSVBVM60.DLL
in my system32 folder, but I am not sure if Access is looking at the
right one. When I look at reference libraries, neither one is checked
and when I try to select either one, I get a "Name conflicts with
existing module, project, or object library" error. I cannot select
either one even in a new database.

It looks like I'm real close to figuring this out, but I've exhausted
everything I can think of, so I'm deferring it to the Access gods...

TIA,

Fr3d Rasmuss3n
Ordinary Guy w/Extrordinary Reputation thanks to MS Access and luck.
Nov 12 '05 #1
3 6374
frasmus44 wrote:
When you view the form on-screen, the control displays perfectly.
However, the control is either partially cut off or is blank when
previewed or printed.


Is there enough space to print with borders? Check your
File/PrintSetup and ensure your borders aren't a source of the problem.

Nov 12 '05 #2
A couple of options:

1) Use the RotateText ActiveX control on my site with zero degrees of
rotation. Works for both Forms and Reports and can be bound to a field.

2) For Reports only, use the Print method of the Report object to draw
the text yourself.

--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"frasmus44" <mh**********@spammotel.com> wrote in message
news:f8**************************@posting.google.c om...
I have searched this group for ways to create jumbo fonts in my Access
forms and reports. Unlike MS Word and MS Excel, Access has a 127 point
font limit. (About 1.75" tall) I'm referring to bound controls here,
so pasting a bitmap into the form is not a solution. I am using Access
2000 (9.0.4402 SR-1).

After playing with some ActiveX controls, I found the Microsoft Forms
2.0 textbox looked promising. I placed the control in a form and
assigned a control source under the object's data properties equal to
a field in my recordsource. Then I was able to manipulate the font
size with form's onCurrent event:

Private Sub Form_Current()
Me!myControl.FontSize = 250
Me!myControl.FontWeight = 600
Me!myControl.WordWrap = False
End Sub

I couldn't figure out how to change the font style, but the default MS
Sans Serif is acceptable for my purposes.

Here's where the problem arose, and the reason for my post:

When you view the form on-screen, the control displays perfectly.
However, the control is either partially cut off or is blank when
previewed or printed.

After fumbling around for quite a while, I discovered the following
article in the MS KnowledgeBase that says this is a known bug of
UserControls (OCX) that are created in Visual Basic.

http://support.microsoft.com/default...port.microsoft.
com:80/support/kb/articles/q181/8/77.asp
I'm not 100% sure this is the same situation, but the article says
that the Visual Basic virtual machine MSVBVM50.DLL is the cause and
VB6.0 solves the problem. I found both MSVBVM50.DLL and MSVBVM60.DLL
in my system32 folder, but I am not sure if Access is looking at the
right one. When I look at reference libraries, neither one is checked
and when I try to select either one, I get a "Name conflicts with
existing module, project, or object library" error. I cannot select
either one even in a new database.

It looks like I'm real close to figuring this out, but I've exhausted
everything I can think of, so I'm deferring it to the Access gods...

TIA,

Fr3d Rasmuss3n
Ordinary Guy w/Extrordinary Reputation thanks to MS Access and luck.


Nov 12 '05 #3
There has been at least one version of Forms 2.0 released after
VB6. I don't know if it was rebuilt to fix this fault.

FM20.dll 2.1.9922.1 March 23 2003

(david)

"frasmus44" <mh**********@spammotel.com> wrote in message
news:f8**************************@posting.google.c om...
I have searched this group for ways to create jumbo fonts in my Access
forms and reports. Unlike MS Word and MS Excel, Access has a 127 point
font limit. (About 1.75" tall) I'm referring to bound controls here,
so pasting a bitmap into the form is not a solution. I am using Access
2000 (9.0.4402 SR-1).

After playing with some ActiveX controls, I found the Microsoft Forms
2.0 textbox looked promising. I placed the control in a form and
assigned a control source under the object's data properties equal to
a field in my recordsource. Then I was able to manipulate the font
size with form's onCurrent event:

Private Sub Form_Current()
Me!myControl.FontSize = 250
Me!myControl.FontWeight = 600
Me!myControl.WordWrap = False
End Sub

I couldn't figure out how to change the font style, but the default MS
Sans Serif is acceptable for my purposes.

Here's where the problem arose, and the reason for my post:

When you view the form on-screen, the control displays perfectly.
However, the control is either partially cut off or is blank when
previewed or printed.

After fumbling around for quite a while, I discovered the following
article in the MS KnowledgeBase that says this is a known bug of
UserControls (OCX) that are created in Visual Basic.

http://support.microsoft.com/default.../q181/8/77.asp
I'm not 100% sure this is the same situation, but the article says
that the Visual Basic virtual machine MSVBVM50.DLL is the cause and
VB6.0 solves the problem. I found both MSVBVM50.DLL and MSVBVM60.DLL
in my system32 folder, but I am not sure if Access is looking at the
right one. When I look at reference libraries, neither one is checked
and when I try to select either one, I get a "Name conflicts with
existing module, project, or object library" error. I cannot select
either one even in a new database.

It looks like I'm real close to figuring this out, but I've exhausted
everything I can think of, so I'm deferring it to the Access gods...

TIA,

Fr3d Rasmuss3n
Ordinary Guy w/Extrordinary Reputation thanks to MS Access and luck.

Nov 12 '05 #4

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

Similar topics

9
by: M O J O | last post by:
Hi, I have my windows-display-font-size set to "Large fonts" and I've created a new project with two forms. Both of them are 600 width and 400 height. One have autoscale=true and the other is...
22
by: stevenkobes | last post by:
If a word has a hyphen in it, IE will permit a line break at the hyphen, but Firefox/Mozilla won't. Apparently the Firefox behavior is standards-compliant, but it is not what I want. Is there a...
3
by: Christopher W. Douglas | last post by:
I am developing an application in VB.NET using Visual Studio 2003. I have a dialog box where the title may be somewhat long, so I want to resize the window to fit the entire title. I already know...
7
by: Joe | last post by:
I have a label control that will be filled with text at runtime. The length of the text will vary, but the label must stay the same size. Is there a way to set the font size of the text such that...
0
by: MikeY | last post by:
Hiya Everyone, Hopefully someone can help. I've created a ListArray and I am putting my data into custom buttons. The background is this, The amount of data in the ListArray will very. The max...
6
by: amatuer | last post by:
I usesd this to display info on a page: <% While not rstMain.eof %> <tr> <td><font size="-1"><%= rstMain("Datum") %></font></td> <!-- <td><font size="-1"><b>Client no</b></font></td> -->...
13
by: Frank Rizzo | last post by:
I will soon be deploying an application on Windows 2003 R2 64-bit Standard Edition. The app will also be compiled for 64-bit. One of the reasons is that the application will really benefit from...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
1
by: =?Utf-8?B?dmFwb3I=?= | last post by:
I'm interested in getting a Windows forms font to resize similar to what happens with the Windows toolbars when the end-user changes the system font. With the Windows toolbar, the font 'grows' as...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.