printing a crystal report

M

Manan

i have a print button to print a crystal report,
but this code is not working, it prints only the lines,and boxes of th
report
not the actual data, my code is

Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e A
System.EventArgs) Handles btnPrint.Click
crpt.PrintOptions.PrinterName = "HP LaserJet 2100 Series PS"
crpt.PrintToPrinter(1, False, 1, 1)
End Sub

can anybody tell this code is correct, if no then , any other solution
 
G

Guest

hi ..
i have this code and it's working

rpt.SetDatabaseLogon("DatabaseUSer","Password","ServerName", "DatabaseName");

rpt.PrintToPrinter (1,false,0,0);

i wish i solved the problem for you
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top