7
Answers

How to make a crystal report print preview from this code?

Ask a question
Israel Mfwamba

Israel Mfwamba

12y
10.7k
1

Hi!

Can I get some help in this codes. From my button when I call a print preview I didnt receive a fully print preview page asually. The crystalReportViewer still there on my form showing all datas. But it'snot what I want. I would like after cliking on my preview's button to see a fully crystal report print preview page. Later I can print it out if I want. 

private void button2_Click(object sender, EventArgs e)


{

ReportDocument


"c:/search//search//CrystalReport1.rpt");

cryRpt.Load(


crystalReportViewer1.ReportSource = cryRpt;

crystalReportViewer1.Refresh();

cryRpt = new ReportDocument();

}

//Thanx


Answers (7)