Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I get my Crystal reports running in VB6 app to use run-time default printer?

Posted on 2011-04-21
3
Medium Priority
?
834 Views
Last Modified: 2012-08-14
Our application is using Crystal XI and VB6.

When our users run reports, they can select to have the report go directly to the printer.

Recently, we've run into a problem where the report would not go to the printer at all.  Investigation showed I had set the report page setup in design mode to "No Printer".  So I "fixed" this, and set the report to default to my HP black and white printer on my development PC.  Now, when our users send the report to a color printer (their default), it only prints black and white.

Am I doing something wrong???  Shouldn't the report.PrintOut go to the user's run-time default printer?  Are there some settings in Crystal that are causing my reports to ignore the run-time default printer and use the design-time printer?

Can I force the assignment of the printer to the run-time system default printer in VB?  I know how to retrieve the default printer within VB6, but I don't know how to set it for the report before it runs.

Thanks so much for your help!
Meryl
0
Comment
Question by:merylsmith
  • 2
2 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 35447768
>>Am I doing something wrong???  
Not really

>>Shouldn't the report.PrintOut go to the user's run-time default printer?  
It will first try to go to the printer it was developed against.  If that printer is not available then it uses the system/user default printer.  However my experience shows it is limited to the capabilities of the printer it was built against.  So, if you need color, or duplex, or some other fancy feature you have to build the report with a printer that has the capability.  Note, the printer doesn't have to really exist just the printer driver needs to be installed and selected.

>>Are there some settings in Crystal that are causing my reports to ignore the run-time default printer and use the design-time printer?
No.  The design time printer or equivalent must be available when you print.

>>Can I force the assignment of the printer to the run-time system default printer in VB?
Yes, by making sure the printer the report was developed against isn't available.

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35859729
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

804 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