Hi Rajesh,
Thanks for contacting support.
I am afraid Aspose.Pdf for .NET does not support the feature to invoke preview dialog when printing the document. Also, please note that Aspose.Pdf for .NET does not invoke print dialog because this is what you can do in your program. In fact, Aspose.Pdf for .NET has means to use printer and page settings for printing pdf documents. For instance, you may try using the following code snippet.
C#
Aspose.Pdf.Facades.PdfViewer viewer =new Aspose.Pdf.Facades.PdfViewer();
viewer.BindPdf("c:/pdftest/OPAN300.PROUT.PDF");
viewer.AutoResize = true;
viewer.Resolution = 600;
viewer.AutoRotate = true;
viewer.PrintPageDialog = true;
PrintDialog printDialog = new PrintDialog();
if (printDialog.ShowDialog() == DialogResult.OK)
{
System.Drawing.Printing.PrinterSettings ps = printDialog.PrinterSettings;
System.Drawing.Printing.PageSettings pgs = new System.Drawing.Printing.PageSettings();
pgs.PaperSize = new System.Drawing.Printing.PaperSize("A4", 827, 1169);
pgs.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
viewer.PrintDocumentWithSettings(pgs, ps);
}
viewer.Close();