473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to count pages for .doc and .pdf?

greetings fellow programmers!! im kinda new in vb.net and i need your
professional help!

im using DSOframer to open .doc files but i disabled the menubar and toolbar
because i just want to show the contents of the .doc file in the
Axframercontrol.. i need to know how many pages the .doc file contains, can
anyone post a code here on how to do that? i saw some codes of vb6 on the
internet for counting pages of .doc, but i cant quite understand the codes on
obtaining the number of pages in the file because it's in vb6.

similarly, i use the tool from acrobat(AxAcroPDF1) to open pdf files. and i
also need to know how many pages the .pdf file contains..

can anyone please post a code here on how to count the pages of a .doc and .
pdf file?

--
Message posted via http://www.dotnetmonster.com

Jan 11 '08 #1
2 7883
Go here -http://support.microsoft.com/default.aspx/kb/224351 and download the
DsoFileSetup sample. It'll show you how to do this, among other things.
--
glen
"bling via DotNetMonster.com" wrote:
greetings fellow programmers!! im kinda new in vb.net and i need your
professional help!

im using DSOframer to open .doc files but i disabled the menubar and toolbar
because i just want to show the contents of the .doc file in the
Axframercontrol.. i need to know how many pages the .doc file contains, can
anyone post a code here on how to do that? i saw some codes of vb6 on the
internet for counting pages of .doc, but i cant quite understand the codes on
obtaining the number of pages in the file because it's in vb6.

similarly, i use the tool from acrobat(AxAcroPDF1) to open pdf files. and i
also need to know how many pages the .pdf file contains..

can anyone please post a code here on how to count the pages of a .doc and .
pdf file?

--
Message posted via http://www.dotnetmonster.com

Jan 11 '08 #2
wow thanks!! this is great!! i can count the total pages of a .doc file now!!

is there a sample like this or a code for counting the pages of pdf files?
this will really help me a lot!!

glen wrote:
>Go here -http://support.microsoft.com/default.aspx/kb/224351 and download the
DsoFileSetup sample. It'll show you how to do this, among other things.
>greetings fellow programmers!! im kinda new in vb.net and i need your
professional help!
[quoted text clipped - 11 lines]
>can anyone please post a code here on how to count the pages of a .doc and .
pdf file?
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200801/1

Jan 12 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: cc | last post by:
From the popular website At this link: http://www.w3schools.com/asp/asp_globalasa.asp I got this code, but it does not work on my server... I can open three IE browsers and watch the count go to...
2
by: TGOS | last post by:
Here's a little question to MySQL Gurus. Two tables. One called 'document' one called 'page'. Needles to say, a document consist out of multiple pages (1:n). The primary (P) and foreign (F) keys...
2
by: L Mehl | last post by:
Different users of the app will want or not want to see report footer ( appears as a separate page). I can make the section invisible with a DLookup of a Y or N value from a 'parameters' table ...
2
by: danny_m | last post by:
Hi there I have two tables, pages and sections, of which pages are a subset of sections. I'm listing out the sections in a list and want to include a COUNT of how many pages each section has...
2
by: john | last post by:
In groupheader in my report I would like to have a page count like "1 of 3" independent from the report's page count (every new item in the group starts on a new page). So the group that start on...
6
by: C10B | last post by:
hi, I have a table with several million rows. Each row is simply the date and time a certain page was viewed. eg page1 1-1-00 page2 2-1-00 page1 16-1-00 page1 17-1-00
2
by: thvferrari | last post by:
Hey guys, Does anyone of you know how to count the number of pages that a doc, xls and ppt would print? My objective is to count this number of pages and charge the user per number of pages...
4
by: G E W hittle | last post by:
I have a directory of tiff files. I need to loop thru the files and count the number of pages in each file. Can someone point me to where this info is stored? GW
1
by: rakesh kakarla | last post by:
Hey guys, Does anyone of you know how to count the number of pages that A HTML page would print. My objective is to count the number of pages in an HTML page using javascript. my application...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.