Solved

VB print with print CommonDialog

Posted on 1997-11-05
1
255 Views
Last Modified: 2011-09-20
HELP !!!!

I need to print on a printer choosen by a print CommonDialog without
changing the default printer on the user system.
I need also to set the printer Orientation property, so I have to
set the printer DefaultPrinter property to TRUE.
Doing this I cannot reset the default printer to the ine the user
set in origin.


Thank You.
m.resta@dea.it
0
Comment
Question by:mara110597
1 Comment
 
LVL 3

Accepted Solution

by:
vmpn earned 50 total points
ID: 1439847
Service pack for Visual Basic that fixes this proble is availiable for download from                   http://microsoft.com/msdownload/vs97sp.htm 

Here is the part related to printer object:

>Printer object: Setting the Printer object to  an item in the<
> Printers collection will now switch the default printer. You can<
> now set a user-defined scale mode for the Printer object by<
> changing the ScaleWidth and ScaleHeight properties. Font<
> attributes are no longer lost when calling  the NewPage<
> method.<

Sincerely,
VMPN
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question