Avatar of Sheldon Livingston
Sheldon LivingstonFlag for United States of America

asked on 

Set printer in VB6

I am using Crystal Reports XI and VB6.  I have an app that will print reports and labels.  I'd like the labels to print to a specific printer all the time (not the default).  How can I set the printer object in CRXI?

Thanks
Crystal ReportsVisual Basic Classic

Avatar of undefined
Last Comment
Sheldon Livingston
Avatar of Mike McCracken
Mike McCracken

The easiest way is to select that printer when you design the report.
Crystal will then look for it.

mlmcc
Avatar of Sheldon Livingston

ASKER

Thanks mlmcc... but I can't be assured that whoever uses this program will have the same printer.
Then how do you propose selecting the proper printer?
You can set the printer in code but nless all users have the same printer you will need to have a list by user of the correct printer.

mlmcc
Avatar of Sheldon Livingston

ASKER

I invisioned a "set the default label printer" form where the user would have to indicate the correct printer the first time he/she printed labels...
There is a printer setup button on the viewer.  The user could click that.

The alternative is to add your own button that would allow the user to select the printer then print the report.

mlmcc
Avatar of Sheldon Livingston

ASKER

My concern is that I don't want them forever havng to view the label prior to printing it.
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Sheldon Livingston

ASKER

Sweet action!  That did it!  Thanks
Visual Basic Classic
Visual Basic Classic

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.

165K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo