473,756 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Fo ntSize = 250
Me!myControl.Fo ntWeight = 600
Me!myControl.Wo rdWrap = 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 6414
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**********@s pammotel.com> wrote in message
news:f8******** *************** ***@posting.goo gle.com...
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.Fo ntSize = 250
Me!myControl.Fo ntWeight = 600
Me!myControl.Wo rdWrap = 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**********@s pammotel.com> wrote in message
news:f8******** *************** ***@posting.goo gle.com...
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.Fo ntSize = 250
Me!myControl.Fo ntWeight = 600
Me!myControl.Wo rdWrap = 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
2464
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 false. When I run the project, the two forms shows the same size. Now I open the project (in vs.net) on a computer with windows-display-font-size set to "Small fonts" and my project is screwed up. Now the width is 501 and the height is...
22
8009
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 way to denote a hyphen in HTML, that the line can be broken after? I've read some stuff about soft hyphens and non-breaking hyphens, but those seem like the opposite of what I'm looking for. I want a normal hyphen, that always appears, and I...
3
2775
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 to use CreateGraphics to measure the length of the string, so my code is something like this (from the Load event): objGraphics = CreateGraphics() objFont = System.Windows.Forms.SystemInformation ?????? intTextLength =...
7
19544
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 it completely fills the label? For example, if the text is "Santa Claus" the font size might have to be 130 points to fill up a 637x476 label, where if the text is "Once upon a midnight dreary / while I pondered weak and weary / over many a...
0
3337
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 amount of buttons I will have is 15. If there is more than 15 items in the ListArray then the 15th button will be a more button to cycle through and display more items from the ListArray.
6
1368
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> --> <td><font size="-1"><%= rstMain("Act") %></font></td> <td><font size="-1"><%= rstMain("Item") %></font></td> <td><font size="-1"><input type="checkbox" name="Inv" id="Inv" value="<%= rstMain("TR_ID") %>"></font></td> </tr>
13
2815
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 having more than 2GB available to it. The http://www.microsoft.com/windowsserver2003/evaluation/features/comparefeatures.mspx page states that Windows 2003 R2 64-bit Standard Edition can handle up to 32GB of RAM. My question is whether anyone...
18
25003
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, that IE7 does not seem to offer any way to control the font size of a text input element.
1
5774
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 the user changes the computer settings. I'm not interested in the event that fires, what I need is an approach to setting the font that is not hard-coded to a specific size such as 10 or 12. I don't see that available in .NET controls, am I missing...
0
9431
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9255
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
9844
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...
0
8688
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...
1
7226
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5119
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...
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.