Solved

crystal report Print problem

Posted on 2004-09-21
6
291 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
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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