So yes it turned out the driver caused this. My printer is a cheap HP4260 that I have had for a while. I tested with several drivers and all was fine. So I guess my only question would be why would this happen? Anyway, I sincerely thank you strongm, I was not thinking along these lines (printer...
>certain fonts incorrectly causing characters to be truncated on the right
I've been using EM_FORMATRANGE for years under a variety of situations (WYSIWYG printing, measuring the length of mixed font strings, etc) and never encountered this. And VB's RTB itself uses EM_FORMATRANGE to print to...
Ok here is the situation.
The code below is close "I THINK" , but I cannot seem to get the picturebox to accurately display what the printer would print with accurate margins etc..
note: everything is set to twips and as the msdn states 1440 twips = 1 logical inch so the goal is to display 1...
OK Instead of going into great detail explaining the problem I set up a quick easy example so others can test.
Just follow the commented test instructions. Any help would be greatly appreciated [yinyang]
'TO TEST
'Add 2 Richtextboxes 'SET SCROLL BARS TO BOTH FOR YOUR CONVENIENCE
'Add 2...
Found this code on VB helper site,
** Before calling this sub, your code must copy the font file to the user's Fonts folder. **
Declare Function WriteProfileString Lib "Kernel" (ByVal _
lpApplicationName As String, ByVal lpKeyName As String, _
ByVal lpString As String) As Integer...
Public Sub DisableMyFirewall(MyToggle As Boolean)
Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
If MyToggle = True Then
MsgBox "Your Windows Firewall will now be disabled."
objPolicy.FirewallEnabled =...
Add 2 command buttons and paste code:
Public Sub DisableMyFirewall(MyToggle As Boolean)
Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile
If MyToggle = True Then
MsgBox "Your Windows Firewall will now be...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.