I have document (see attachment) with header. Header have image, When I run Print preview image is not exists in header… How I can resolve it
Also I tried to do this with both versions 6.0.0.0 and .6.2.0.0
Source code
var doc2 = new Aspose.Words.Document(@"E:\rrrr2.doc");
PrintPreviewDialog previewDlg = new PrintPreviewDialog();
// Show non-modal first is a hack for the print preview form to show on top.
previewDlg.Show();
// Initialize the Print Dialog with the number of pages in the document.
PrintDialog printDlg = new PrintDialog();
printDlg.AllowSomePages = true;
printDlg.PrinterSettings.MinimumPage = 1;
printDlg.PrinterSettings.MaximumPage = doc2.PageCount;
printDlg.PrinterSettings.FromPage = 1;
printDlg.PrinterSettings.ToPage = doc2.PageCount;
if (!printDlg.ShowDialog().Equals(DialogResult.OK))
return;
// Create the Aspose.Words’ implementation of the .NET print document
// and pass the printer settings from the dialog to the print document.
AsposeWordsPrintDocument awPrintDoc = new AsposeWordsPrintDocument(doc2);
awPrintDoc.PrinterSettings = printDlg.PrinterSettings;
// Hide and invalidate preview is a hack for print preview to show on top.
previewDlg.Hide();
previewDlg.PrintPreviewControl.InvalidatePreview();
// Pass the Aspose.Words’ print document to the .NET Print Preview dialog.
previewDlg.Document = awPrintDoc;
previewDlg.ShowDialog();