VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
ipd.PrinterSettings.FromPage = 2; ipd.PrinterSettings.ToPage = 2;My code is based on the sample code, which I must say seems bizarre. You call the .Print() method which seems to then fire an event once for each page in the image. The event uses a page count to track which page to print.
void ipd_PrintImage(object sender, PrintImageEventArgs e)
{
if (currentPage < ic.Count)
{
e.Image = ic[currentPage];
currentPage++;
if (currentPage >= ic.Count)
{
e.HasMoreImages = false;
currentPage = 0;
}
else
{
e.HasMoreImages = true;
}
}
}
I'm sure I could find a way round this by splitting the image up into single page images and printing the ones I want BUT the fact that you can set this property (PrinterSettings.PrintRange = PrintRange.SomePages) would suggest that this approach is not necessary.