Solved

VB print with print CommonDialog

Posted on 1997-11-05
1
234 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now