Solved

Crystal Reports from within VB 5

Posted on 1998-07-21
5
196 Views
Last Modified: 2010-05-03
I am printing a Crystal Report from within VB. I only have one report to print so I am using the "easy" method of adding the Crystal Reports component and then simply attaching a code to a command button to execute the report. I have it set to pop up in a window by default.  The report needs to be printed on two sides. When I created the report I set it that way, and if I print from Crystal Reports program it does print two sided, however it does not from within VB. Can someone please help. I would be happy to even just have a normal print dialog box that would pop up to allow me to change it to two sided. Thank you
0
Comment
Question by:webguru
  • 3
  • 2
5 Comments
 

Author Comment

by:webguru
ID: 1466333
Adjusted points to 200
0
 
LVL 4

Accepted Solution

by:
trkcorp earned 200 total points
ID: 1466334
So, have just that... The crystal report control has a printerselect method that presents a printer dialog:

CrystalReport1.PrinterSelect

This imposes an "override" for the run of the report without permanently setting printer attributes and allows the user access to select a printer and set its properties.

Another option is to just use the common dialog control:

CommonDialog1.ShowPrinter

which is a system change of printer but still allows the user to select a printer and set its properties.
0
 

Author Comment

by:webguru
ID: 1466335
I do not believe my Crystal Reports 4.6 supports crystalreports.PrinterSelect however the commondialog component worked fine. Thank You for your help
0
 
LVL 4

Expert Comment

by:trkcorp
ID: 1466336
Great, glad to be of service.
0
 

Author Comment

by:webguru
ID: 1466337
Hey trkcorp, could you read my other question? And see if you can help. I have worked on this problem for a while now to no avail.
If you can thanks, if not its ok,

jeff
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

813 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