Hi,Using Aspose.Words i’m saving document in stream.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
for (int i = 0; i < img.Count; i++)
{
PageSetup ps = builder.PageSetup;
ps.PageWidth = ConvertUtil.PixelToPoint(img[i].Width, img[i].HorizontalResolution);
ps.PageHeight = ConvertUtil.PixelToPoint(img[i].Height, img[i].VerticalResolution);
builder.InsertImage(img[i], RelativeHorizontalPosition.Page, 0, RelativeVerticalPosition.Page, 0, ps.PageWidth, ps.PageHeight, WrapType.None);
if (i < img.Count - 1)
builder.InsertBreak(BreakType.SectionBreakNewPage);
}
MemoryStream ms = new MemoryStream();
**doc.Save(ms, SaveFormat.Pdf);**
After This,I need to send this doc to printerFunction.
Utilities.DocumentPrint.Print(ms.ToArray());
I tried the above code for function call.but only first page only going…how to handle this