?
Solved

crystal report Print problem

Posted on 2004-09-21
6
Medium Priority
?
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 101

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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 5

Accepted Solution

by:
ajitanand earned 1000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
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 …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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