Solved

Printer a file

Posted on 2001-07-17
4
234 Views
Last Modified: 2006-11-17
I have a file and i need to send it directly to a printer, the file contain graphic. Please help
0
Comment
Question by:ysk9818
4 Comments
 
LVL 4

Accepted Solution

by:
jrmn earned 100 total points
ID: 6292165
Is this a design or runtime question?

If it's a design time, can't you just press the crystal reports print button on the menu?

If it's runtime, try this:

Crpe1.ReportName := 'C:\Company.rpt';
Crpe1.Output := toPrinter;

if Crpe1.Printer.ShowPrintDlg then Crpe1.Execute
else ShowMessage('Printing Cancelled');


This is a sample Delphi code, just translate it to VB if you're doing it there ok?


Goodluck,
jrmn


0
 
LVL 4

Expert Comment

by:YodaMage
ID: 6294891
You may also want to add:

crpe1.printer.showdialog := false;
0
 
LVL 12

Expert Comment

by:DRRYAN3
ID: 6523814
This question has been open for some time now.  Please return and either
1.  Accept an answer
2.  Post a comment stating that you need more information
3.  Ask Community Support to delete the question if you feel the information here has no value to you or anyone else.
4.  Ask Community Support to PAQ the question because your question was not answered but you feel the information here may be of some value to others.

Community Support is here:  http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt and you can leave a message by posting a zero point question.  Be sure to reference the question ID, found in the Address bar of your browser.

Thanks
DRRYAN3
0
 

Expert Comment

by:ComTech
ID: 6529252
Answer accepted by:

ComTech
Community Support Moderator
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

19 Experts available now in Live!

Get 1:1 Help Now