Printer a file

Posted on 2001-07-17
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
Question by:ysk9818
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

Accepted Solution

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?



Expert Comment

ID: 6294891
You may also want to add:

crpe1.printer.showdialog := false;
LVL 12

Expert Comment

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: 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.


Expert Comment

ID: 6529252
Answer accepted by:

Community Support Moderator

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

739 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