how to print

P

project

hi friends,
I want to print an invoice with out open crystal report . what I
mean to say that i want to give direct print print commad with out
open crystal report
..
pls anybody knows this one just help me
 
E

EricJ

you will have to load your report in a reportdocument class and call it's
print

Dim rap As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rap.Load("filepath to report.rpt")
rap.PrintToPrinter(1, False, 0, 0)

or for strong type reports

Dim rap As New yourrep
rap.PrintToPrinter(1, False, 0, 0)

If you want to do a lot w crystal have a look at Brian Bischof's book
http://www.crystalreportsbook.com/ it is worth every penny

Hope it helps

eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top