Solved

crystal report Print problem

Posted on 2004-09-21
6
287 Views
Last Modified: 2012-06-27
hi!!!

I'm Unable to print a Crystal report from my Vb Application..

I'm getting an error No Default Printer "Error in File Name ..." name of the .rpt file..

a printer is available on my system... and is set to as default..

what are the steps what am i missing ..
i'm using following steps

  .ReportFileName = "C:\Neeru\RCT\VER16-08-2004\Source\RCTHighValue\Reports\Advanced Report.rpt"
    .Destination = crptToPrinter
    .Action = 1

Its URGENT!!!
Please HElp!!!!
0
Comment
Question by:anv
  • 3
  • 2
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 12111543
Verify you have a default printer selected on the machine in question.  Crystal uses the default printer to build the report.
Can you preview th e report?

Was the report built on this machine?  Can you preview or print the report from Crystal?

Was the report built with the NO PRINTER option selected?
I forget where it is but check
Open the report
Click FILE --> REPORT OPTIONS
Verify NO PRINTER is NOT checked

may also be
CLick FILE --> OPTIONS
or
Click FILE --> PRINTER SETUP

mlmcc
0
 
LVL 5

Expert Comment

by:ajitanand
ID: 12120029
hello,

This error comes only SOMETIMES (yes only sometimes!) when you have a default printer INSTALLED on your system, but is not the same as the one that was used to design the report, and that Printer No longer is attached/working on your machine (means is a dummy printer).

Some printer drivers cause this problem. Try installing a valid printer on your machine, and set the default printer for your report to that printer. This error will go off.

rgds,
Ajit Anand
0
 
LVL 10

Author Comment

by:anv
ID: 12120812
hi ajianand

thanx for ur reponse,, actually i already found this as the solution...

now i just want to know... whether this will produce the sme error if i install my application on clients machine having a default printer but with some other name etc..??
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Accepted Solution

by:
ajitanand earned 250 total points
ID: 12120981
If your client has a default printer (that WORKS! as well), then no errors will appear. Crystal Engine will automatically find and set the default printer as the printer on the executing report on the cilent machine.
0
 
LVL 10

Author Comment

by:anv
ID: 12121115
have you tested that??
0
 
LVL 5

Expert Comment

by:ajitanand
ID: 12121144
yes! it already happened to me several times, since we use dummy printers normaly during testing to avoid paper wastage. :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

862 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

25 Experts available now in Live!

Get 1:1 Help Now