Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Problems w/ Printing under XP
Old
  (#1)
Val Mehling
Guest
 
Posts: n/a
Default Problems w/ Printing under XP - 06-04-2007, 09:48 AM

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.net

XRL (Extreme Racing League) Info
http://extremeracingleague.com/
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Problems w/ Printing under XP
Old
  (#2)
Rick Rothstein
Guest
 
Posts: n/a
Default Re: Problems w/ Printing under XP - 06-04-2007, 09:48 AM

> 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.
***uming you named the control CommonDialog1 (the default)...

For Screen Fonts only
=======================
CommonDialog1.Flags = cdlCFScreenFonts

For Printer Fonts only
=======================
CommonDialog1.Flags = cdlCFPrinterFonts

For Both
=======================
CommonDialog1.Flags = cdlCFScreenFonts Or cdlCFPrinterFonts

Rick - MVP

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Problems w/ Printing under XP
Old
  (#3)
Val Mehling
Guest
 
Posts: n/a
Default Re: Problems w/ Printing under XP - 06-04-2007, 09:48 AM

On Wed, 25 Aug 2004 12:11:18 -0400, "Rick Rothstein"
<EMAIL REMOVED> 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.
>***uming you named the control CommonDialog1 (the default)...
>
>For Screen Fonts only
>=======================
>CommonDialog1.Flags = cdlCFScreenFonts
>
>For Printer Fonts only
>=======================
>CommonDialog1.Flags = cdlCFPrinterFonts
>
>For Both
>=======================
>CommonDialog1.Flags = cdlCFScreenFonts Or cdlCFPrinterFonts
>
>Rick - MVP


Rick,
Will check that out tomorrow. Thanks.


Val Mehling
valjm16@DELETE_THISearthlink.net

XRL (Extreme Racing League) Info
http://extremeracingleague.com/
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Problems w/ Printing under XP
Old
  (#4)
Val Mehling
Guest
 
Posts: n/a
Default Re: Problems w/ Printing under XP - 06-04-2007, 09:48 AM

On Wed, 25 Aug 2004 12:11:18 -0400, "Rick Rothstein"
<EMAIL REMOVED> 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.
>***uming you named the control CommonDialog1 (the default)...
>
>For Screen Fonts only
>=======================
>CommonDialog1.Flags = cdlCFScreenFonts
>
>For Printer Fonts only
>=======================
>CommonDialog1.Flags = cdlCFPrinterFonts
>
>For Both
>=======================
>CommonDialog1.Flags = cdlCFScreenFonts Or cdlCFPrinterFonts
>
>Rick - MVP


Problem Solved! Thanks again.
Val Mehling
valjm16@DELETE_THISearthlink.net

XRL (Extreme Racing League) Info
http://extremeracingleague.com/
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top