Solved

Printer a file

Posted on 2001-07-17
4
245 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

828 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