Printing only the first page from a PDF in VB.NET

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 3745 Views - Last Post: 06 February 2013 - 10:20 AM Rate Topic: ***** 1 Votes

#16 Essenti4l  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 05-February 13

Re: Printing only the first page from a PDF in VB.NET

Posted 06 February 2013 - 08:45 AM

Is there anyone familiar with iText# in VB.NET? Because it's not really making any sense for me.
Was This Post Helpful? 0
  • +
  • -

#17 lar3ry  Icon User is offline

  • Coding Geezer
  • member icon

Reputation: 310
  • View blog
  • Posts: 1,290
  • Joined: 12-September 12

Re: Printing only the first page from a PDF in VB.NET

Posted 06 February 2013 - 10:20 AM

View Postandrewsw, on 06 February 2013 - 08:03 AM, said:

View Postlar3ry, on 05 February 2013 - 07:57 PM, said:

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

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2