Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 13 Feb 2008 06:15:00 -0800,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


Get the number of HTML pages   
Hello everybody,

I have an HTML page where I show records.  There can be 1 record or 1000 
records so the report likely goes on multiple pages.  I need to get the 
number of pages to be printed.  Is there any way I can do this?

Thanks.
date: Wed, 13 Feb 2008 06:15:00 -0800   author:   usamaalam

Re: Get the number of HTML pages   
usamaalam wrote:
> Hello everybody,
>
> I have an HTML page where I show records.  There can be 1 record or
> 1000 records so the report likely goes on multiple pages.  I need to
> get the number of pages to be printed.  Is there any way I can do
> this?
>
Query the database for the number of records to  be printed. divide by
the number of records per page

-- 
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
date: Wed, 13 Feb 2008 09:55:58 -0500   author:   Bob Barrows [MVP] com

Re: Get the number of HTML pages   
Basically my page doesn't show data in simple tabular form.  There are some 
dynamic column charts, pie charts of variable length and tabular data as well.

Thanks.

"Bob Barrows [MVP]" wrote:

> usamaalam wrote:
> > Hello everybody,
> >
> > I have an HTML page where I show records.  There can be 1 record or
> > 1000 records so the report likely goes on multiple pages.  I need to
> > get the number of pages to be printed.  Is there any way I can do
> > this?
> >
> Query the database for the number of records to  be printed. divide by
> the number of records per page
> 
> -- 
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
> 
> 
>
date: Wed, 13 Feb 2008 07:24:00 -0800   author:   usamaalam

Re: Get the number of HTML pages   
Well, if knowing the number of records involved does not help you
predict the number of pages to be printed, then it sounds like an
impossible problem. Would it be possible to generate all the html pages
at once so you can count them?

usamaalam wrote:
> Basically my page doesn't show data in simple tabular form.  There
> are some dynamic column charts, pie charts of variable length and
> tabular data as well.
>
> Thanks.
>
> "Bob Barrows [MVP]" wrote:
>
>> usamaalam wrote:
>>> Hello everybody,
>>>
>>> I have an HTML page where I show records.  There can be 1 record or
>>> 1000 records so the report likely goes on multiple pages.  I need to
>>> get the number of pages to be printed.  Is there any way I can do
>>> this?
>>>
>> Query the database for the number of records to  be printed. divide
>> by the number of records per page
>>

-- 
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
date: Wed, 13 Feb 2008 10:42:48 -0500   author:   Bob Barrows [MVP] com

Re: Get the number of HTML pages   
Yes all the pages are generated at once.  This is a single page that scrolls 
down and printed on multiple pages.

Thanks.

"Bob Barrows [MVP]" wrote:

> Well, if knowing the number of records involved does not help you
> predict the number of pages to be printed, then it sounds like an
> impossible problem. Would it be possible to generate all the html pages
> at once so you can count them?
> 
> usamaalam wrote:
> > Basically my page doesn't show data in simple tabular form.  There
> > are some dynamic column charts, pie charts of variable length and
> > tabular data as well.
> >
> > Thanks.
> >
> > "Bob Barrows [MVP]" wrote:
> >
> >> usamaalam wrote:
> >>> Hello everybody,
> >>>
> >>> I have an HTML page where I show records.  There can be 1 record or
> >>> 1000 records so the report likely goes on multiple pages.  I need to
> >>> get the number of pages to be printed.  Is there any way I can do
> >>> this?
> >>>
> >> Query the database for the number of records to  be printed. divide
> >> by the number of records per page
> >>
> 
> -- 
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
> 
> 
>
date: Wed, 13 Feb 2008 08:02:00 -0800   author:   usamaalam

Re: Get the number of HTML pages   
You have a single page to be printed? Your subject is a bit misleading
...

I would suggest using css to put in page breaks at appropriate places
(<p style="page-break-before:always"></p>), and keep track of the number
of page breaks. If you leave it up to the browser/printer driver
combination to work out where page breaks will occur, you will be back
to the impossible task.

usamaalam wrote:
> Yes all the pages are generated at once.  This is a single page that
> scrolls down and printed on multiple pages.
>
> Thanks.
>
> "Bob Barrows [MVP]" wrote:
>
>> Well, if knowing the number of records involved does not help you
>> predict the number of pages to be printed, then it sounds like an
>> impossible problem. Would it be possible to generate all the html
>> pages at once so you can count them?
>>
>> usamaalam wrote:
>>> Basically my page doesn't show data in simple tabular form.  There
>>> are some dynamic column charts, pie charts of variable length and
>>> tabular data as well.
>>>
>>> Thanks.
>>>
>>> "Bob Barrows [MVP]" wrote:
>>>
>>>> usamaalam wrote:
>>>>> Hello everybody,
>>>>>
>>>>> I have an HTML page where I show records.  There can be 1 record
>>>>> or 1000 records so the report likely goes on multiple pages.  I
>>>>> need to get the number of pages to be printed.  Is there any way
>>>>> I can do this?
>>>>>
>>>> Query the database for the number of records to  be printed. divide
>>>> by the number of records per page
>>>>
>>

-- 
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
date: Wed, 13 Feb 2008 11:47:23 -0500   author:   Bob Barrows [MVP] com

Re: Get the number of HTML pages   
You are right, I should write something like "Get number of pages to be 
printed" etc.

Let me show you the page so you may get a clear idea what I need to do.

https://www.premiersurvey.com/survey/statsrating.aspx?s_id=341972

If you open the above link with IE and take the print preview, you will see 
it will go to print the report on multiple pages and I need to add a footer 
for copyright information at the bottom of each page to be printed.  I was 
asking for number of pages to generate the DIVs dynamically for each page.

I think now you will get the idea what actually I need.

Thanks for your help.

"Bob Barrows [MVP]" wrote:

> You have a single page to be printed? Your subject is a bit misleading
> ....
> 
> I would suggest using css to put in page breaks at appropriate places
> (<p style="page-break-before:always"></p>), and keep track of the number
> of page breaks. If you leave it up to the browser/printer driver
> combination to work out where page breaks will occur, you will be back
> to the impossible task.
> 
> usamaalam wrote:
> > Yes all the pages are generated at once.  This is a single page that
> > scrolls down and printed on multiple pages.
> >
> > Thanks.
> >
> > "Bob Barrows [MVP]" wrote:
> >
> >> Well, if knowing the number of records involved does not help you
> >> predict the number of pages to be printed, then it sounds like an
> >> impossible problem. Would it be possible to generate all the html
> >> pages at once so you can count them?
> >>
> >> usamaalam wrote:
> >>> Basically my page doesn't show data in simple tabular form.  There
> >>> are some dynamic column charts, pie charts of variable length and
> >>> tabular data as well.
> >>>
> >>> Thanks.
> >>>
> >>> "Bob Barrows [MVP]" wrote:
> >>>
> >>>> usamaalam wrote:
> >>>>> Hello everybody,
> >>>>>
> >>>>> I have an HTML page where I show records.  There can be 1 record
> >>>>> or 1000 records so the report likely goes on multiple pages.  I
> >>>>> need to get the number of pages to be printed.  Is there any way
> >>>>> I can do this?
> >>>>>
> >>>> Query the database for the number of records to  be printed. divide
> >>>> by the number of records per page
> >>>>
> >>
> 
> -- 
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
> 
> 
>
date: Wed, 13 Feb 2008 12:31:00 -0800   author:   usamaalam

Re: Get the number of HTML pages   
Sorry, but I don't know how to do that. You might try one of these
groups:
http://groups.google.com/groups/dir?sel=33584039
usamaalam wrote:
> You are right, I should write something like "Get number of pages to
> be printed" etc.
>
> Let me show you the page so you may get a clear idea what I need to
> do.
>
> https://www.premiersurvey.com/survey/statsrating.aspx?s_id=341972
>
> If you open the above link with IE and take the print preview, you
> will see it will go to print the report on multiple pages and I need
> to add a footer for copyright information at the bottom of each page
> to be printed.  I was asking for number of pages to generate the DIVs
> dynamically for each page.
>
> I think now you will get the idea what actually I need.
>
> Thanks for your help.
>
> "Bob Barrows [MVP]" wrote:
>
>> You have a single page to be printed? Your subject is a bit
>> misleading ....
>>
>> I would suggest using css to put in page breaks at appropriate places
>> (<p style="page-break-before:always"></p>), and keep track of the
>> number of page breaks. If you leave it up to the browser/printer
>> driver combination to work out where page breaks will occur, you
>> will be back to the impossible task.
>>
>> usamaalam wrote:
>>> Yes all the pages are generated at once.  This is a single page that
>>> scrolls down and printed on multiple pages.
>>>
>>> Thanks.
>>>
>>> "Bob Barrows [MVP]" wrote:
>>>
>>>> Well, if knowing the number of records involved does not help you
>>>> predict the number of pages to be printed, then it sounds like an
>>>> impossible problem. Would it be possible to generate all the html
>>>> pages at once so you can count them?
>>>>
>>>> usamaalam wrote:
>>>>> Basically my page doesn't show data in simple tabular form.  There
>>>>> are some dynamic column charts, pie charts of variable length and
>>>>> tabular data as well.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> "Bob Barrows [MVP]" wrote:
>>>>>
>>>>>> usamaalam wrote:
>>>>>>> Hello everybody,
>>>>>>>
>>>>>>> I have an HTML page where I show records.  There can be 1 record
>>>>>>> or 1000 records so the report likely goes on multiple pages.  I
>>>>>>> need to get the number of pages to be printed.  Is there any way
>>>>>>> I can do this?
>>>>>>>
>>>>>> Query the database for the number of records to  be printed.
>>>>>> divide by the number of records per page
>>>>>>
>>>>
>>
>> --
>> Microsoft MVP -- ASP/ASP.NET
>> Please reply to the newsgroup. The email account listed in my From
>> header is my spam trap, so I don't check it very often. You will get
>> a quicker response by posting to the newsgroup.

-- 
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
date: Wed, 13 Feb 2008 15:57:59 -0500   author:   Bob Barrows [MVP] com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us