Is there anyone familiar with iText# in VB.NET? Because it's not really making any sense for me.
16 Replies - 7063 Views - Last Post: 06 February 2013 - 10:20 AM
Re: Printing only the first page from a PDF in VB.NET
Posted 06 February 2013 - 10:20 AM
I was thinking about Sleep(), but I'm not very familiar with it, and have no idea if it would Sleep() the printing operation. It's easy enough to check, I suppose, so I'll give it a try.
Imports System.Threading Thread.Sleep(4) ' seconds
Give it a long stretch initially!
I tried it with the two Sleep(0 statements as you suggested, using values up to 10000, but no go. I am getting varying results. Sometimes, it just prints the first page of one file (out of the three in the directory), and at other times, two, and again at other times, one blank page and one first page.
I can't find any AxAcroPDF events that would help to tell us when the page has successfully loaded.
I'm pretty much out of ideas.
This post has been edited by lar3ry: 06 February 2013 - 10:22 AM