Up until now I have been able to avoid using Common Dialog by accessing printers
directly. This is no longer possible, so-
Using VB5 under XP Home Edition. I use the Common Dialog functions to select a
printer and output my data.
1. If I am in the VB5 IDE, the printer output appears to be non-proportional and
looks perfect because it all lines up.
2. If I am running the compiled program by itself, the printer output uses a
smaller font which apparently is proportional and the result is very ragged
looking as nothing lines up.
3. When I tried using the Common Dialog Show Font method, I got an error message
saying that no fonts were installed. (Word for Windows lists dozens of fonts so
they must be installed and all of them appear to be TrueType.)
Does anyone has any ideas about what else I might try?
Val Mehling valjm16@DELETE_ THISearthlink.n et
XRL (Extreme Racing League) Info http://extremeracingleague.com/ 3 2657
> Up until now I have been able to avoid using Common Dialog by
accessing printers directly. This is no longer possible, so-
Using VB5 under XP Home Edition. I use the Common Dialog functions to
select a printer and output my data.
1. If I am in the VB5 IDE, the printer output appears to be
non-proportional and looks perfect because it all lines up.
2. If I am running the compiled program by itself, the printer output
uses a smaller font which apparently is proportional and the result is very
ragged looking as nothing lines up.
3. When I tried using the Common Dialog Show Font method, I got an
error message saying that no fonts were installed. (Word for Windows lists dozens
of fonts so they must be installed and all of them appear to be TrueType.)
Does anyone has any ideas about what else I might try?
You have to tell the control which Fonts you want via the Flag property.
Assuming you named the control CommonDialog1 (the default)...
For Screen Fonts only
=============== ========
CommonDialog1.F lags = cdlCFScreenFont s
For Printer Fonts only
=============== ========
CommonDialog1.F lags = cdlCFPrinterFon ts
For Both
=============== ========
CommonDialog1.F lags = cdlCFScreenFont s Or cdlCFPrinterFon ts
Rick - MVP
On Wed, 25 Aug 2004 12:11:18 -0400, "Rick Rothstein"
<ri************ @NOSPAMcomcast. net> wrote: Up until now I have been able to avoid using Common Dialog by accessing printers directly. This is no longer possible, so-
Using VB5 under XP Home Edition. I use the Common Dialog functions to select a printer and output my data.
1. If I am in the VB5 IDE, the printer output appears to be non-proportional and looks perfect because it all lines up.
2. If I am running the compiled program by itself, the printer output uses a smaller font which apparently is proportional and the result is very ragged looking as nothing lines up.
3. When I tried using the Common Dialog Show Font method, I got an error message saying that no fonts were installed. (Word for Windows lists dozens of fonts so they must be installed and all of them appear to be TrueType.)
Does anyone has any ideas about what else I might try?
You have to tell the control which Fonts you want via the Flag property. Assuming you named the control CommonDialog1 (the default)...
For Screen Fonts only ============== ========= CommonDialog1. Flags = cdlCFScreenFont s
For Printer Fonts only ============== ========= CommonDialog1. Flags = cdlCFPrinterFon ts
For Both ============== ========= CommonDialog1. Flags = cdlCFScreenFont s Or cdlCFPrinterFon ts
Rick - MVP
Rick,
Will check that out tomorrow. Thanks.
Val Mehling valjm16@DELETE_ THISearthlink.n et
XRL (Extreme Racing League) Info http://extremeracingleague.com/
On Wed, 25 Aug 2004 12:11:18 -0400, "Rick Rothstein"
<ri************ @NOSPAMcomcast. net> wrote: Up until now I have been able to avoid using Common Dialog by accessing printers directly. This is no longer possible, so-
Using VB5 under XP Home Edition. I use the Common Dialog functions to select a printer and output my data.
1. If I am in the VB5 IDE, the printer output appears to be non-proportional and looks perfect because it all lines up.
2. If I am running the compiled program by itself, the printer output uses a smaller font which apparently is proportional and the result is very ragged looking as nothing lines up.
3. When I tried using the Common Dialog Show Font method, I got an error message saying that no fonts were installed. (Word for Windows lists dozens of fonts so they must be installed and all of them appear to be TrueType.)
Does anyone has any ideas about what else I might try?
You have to tell the control which Fonts you want via the Flag property. Assuming you named the control CommonDialog1 (the default)...
For Screen Fonts only ============== ========= CommonDialog1. Flags = cdlCFScreenFont s
For Printer Fonts only ============== ========= CommonDialog1. Flags = cdlCFPrinterFon ts
For Both ============== ========= CommonDialog1. Flags = cdlCFScreenFont s Or cdlCFPrinterFon ts
Rick - MVP
Problem Solved! Thanks again.
Val Mehling valjm16@DELETE_ THISearthlink.n et
XRL (Extreme Racing League) Info http://extremeracingleague.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Vince |
last post by:
I have a generic page that I use for printing content, and it contains
an iframe into which I put the url for the page to be printed. I
dynamically size the iframe so that it correctly displays the entire
contents of the printed page.
There are 2 problems with this:
1) The resulting printout chops off the bottom part of the page, even
though it displays the full page in the browser. Even in print preview
it still chops off the bottom....
|
by: Grim Reaper |
last post by:
I print mailing labels out of Access 2000 databases about 3 to 4 times a
week. I have been having problems with one thing since I have been printing
mailing labels.
I print mailing labels by using a report I created and then printing them on
a continuous-feed dot matrix printer. I used the Label Wizard, chose the
query I created, picked the 'Avery USA 4146' (1 7/16" x 4") - 3 across,
paper size: 'Fanfold 358mm x 12 in', and Printer:...
|
by: Zeroeffect |
last post by:
Hello!
I have a database with alot of embedded images. The reason for having
the images embedded is security.
My problem is that it works fine on my computer, but not on my clients
computer. He hasn't got Microsoft Photo Editor installed and because
of that he cant view the images when doubleclicking on them in the
table. He can still see the pictures in the formview but when he
doubelclicks the images a error message shows up.
|
by: Tracey |
last post by:
Hey folks, I have an ASP.NET web app that's working just
fine, but a small percentage have two printing problems
that don't happen to the vast majority of users. These
problems are listed below and do NOT appear on the print
preview, but do when they actually print:
Radio buttons aren't printing at all.
Disable values are not printing, like the text in a
disabled text box.
|
by: Chad Dittmer via .NET 247 |
last post by:
I'm having problems inserting into Sql 2000 using SqlHelper.ExecuteScalar.
When it inserts, it only takes the first character from the string?? Any help would be appreciated. Here is the code and the stored procedure I'm using.
Dim newRowId As Integer
newRowId = Convert.ToInt32(SqlHelper.ExecuteScalar(ConfigurationSettings.AppSettings("ConnectionString"), "ProcContactsInsert", 1234, "hparameter2", "parameter2", "tparamer2", "pareter2",...
| |
by: Alejandra Parra |
last post by:
In my code, I print a dataSet
' get grid's PrintDocument object
Dim pd As System.Drawing.Printing.PrintDocument
pd = flexgrid.PrintParameters.PrintDocument()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageSettings
..Landscape = False
..Margins.Left = 50
Dim a As New Printing.PaperSize("Carta", 850, 1100)
|
by: randomtalk |
last post by:
hi, i have the following recursive function (simplified to demonstrate
the problem):
>>> def reTest(bool):
.... result =
.... if not bool:
.... reTest(True)
.... else:
.... print "YAHHH"
.... result =
|
by: Galen Somerville |
last post by:
In VB6 (converted to VB2005) there are 6 different sub-menu items where the
user has a choice of listing items on the screen or printing out a list of
items.
Each such menu item puts the name of a file in a string variable and calls a
print routine. Obviously I have boucoup errors and warnings.
But the documentation always shows doing the printing from a button click. I
don't have a button to click !!
|
by: Dreamtime |
last post by:
Hi
I am using Visual Studio 2005 and the bundled Crystal Reports
(previously I used .net 2003 and bundled Crystal Reports for 2 years -
same issues!)
I have a report which is displayed in the crystal reports viewer. This
report needs to be printed. Its that simple!
I would like to use the report.printtoprinter method as this is direct
|
by: Wilson |
last post by:
i am very new to c++ and am creating a new program, below are two
seperate parts of the program, made to run seperately, however the
constructor in one works (prints "constructing" on the screen), while
the constructor in the other doesnt. Can you please help me understand
why, i think they are almost identical.
This one works:
#include <cstdio>
#include <cstdlib>
|
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...
| |
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,...
|
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...
|
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...
|
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();...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |