I am using Spire.PDF 9.3.4 and am testing the product for my company to see if it has the requirements for our application.
I want to use a Print Preview Control to show the pdf before printing it.
- Code: Select all
private void printPreviewControl1_Click(object sender, EventArgs e)
{
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(@"pdffile.pdf");
this.printPreviewControl1.Rows = 2;
this.printPreviewControl1.Columns = 2;
pdf.Preview(this.printPreviewControl1);
}
Visual Studio does not recognize the pdf.Preview line in the code.
This is directly copied from your tutorials, is there something I did wrong?
Thanks in advance!
Daan