Solved

VB print with print CommonDialog

Posted on 1997-11-05
1
263 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

856 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