I used  " pdf As New PdfDocument ", .........but I saw you used:

   hPdfDocument.Count

Instead I used:    pdf.Index.Count

So, now, if I use " pdf.Count ", it's OK.

Well, Tobias, thank you.
Solved.

bye
vuott




--------------------------------------------
Gio 24/4/14, Tobias Boege <[email protected]> ha scritto:

 Oggetto: Re: [Gambas-user] How to know how many pages a pdf file has.
 A: "mailing list for gambas users" <[email protected]>
 Data: Giovedì 24 Aprile 2014, 19:22
 
 On Thu, 24 Apr 2014, Ru
 Vuott wrote:
 > Hello Tobias,
 > 
 > If I try with 
 " PdfDocument.Count "
 > I
 obtain this error:
 > 
 > " PdfDocument.Count is not static
 "
 > 
 > bye
 
 Of course, you need to ask an
 actual object of the PdfDocument class to give
 you its Count:
 
   Dim hPdfDocument As New PdfDocument
 
   ' Open your document
   Print hPdfDocument.Count
 
 -- 
 "There's an old
 saying: Don't change anything... ever!" -- Mr.
 Monk
 
 ------------------------------------------------------------------------------
 Start Your Social Network Today - Download eXo
 Platform
 Build your Enterprise Intranet with
 eXo Platform Software
 Java Based Open Source
 Intranet - Social, Extensible, Cloud Ready
 Get Started Now And Turn Your Intranet Into A
 Collaboration Platform
 http://p.sf.net/sfu/ExoPlatform
 _______________________________________________
 Gambas-user mailing list
 [email protected]
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to