Israel Mfwamba

Israel Mfwamba

  • NA
  • 20
  • 25.8k

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

Dec 12 2011 9:55 AM

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)