Página 1 de 1

total pages in reports

Publicado: Jue Jul 01, 2010 5:55 pm
por Timm
Hi,
is there a way to print "page 1 of x" in a report?
I know that it is difficult to get the number of pages before printing is
done but perhaps it is possible to print a virtual report and use its nPage
for the real report?
Best regards, Timm.

total pages in reports

Publicado: Jue Jul 01, 2010 8:55 pm
por ignacio
Timm,
You can print the report twice and get the page number from oReport:nPage
property
with object oReport1
:lPreview := .T.
:oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() }
:Run()
nTotalPages := :nPage
:oDevice:OnPreview := NIL
End with
Have not tested BTW.
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
noticias:4c2cba78$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Hi,
>
> is there a way to print "page 1 of x" in a report?
>
> I know that it is difficult to get the number of pages before printing is
> done but perhaps it is possible to print a virtual report and use its
> nPage
> for the real report?
>
> Best regards, Timm.

total pages in reports

Publicado: Vie Jul 02, 2010 8:07 am
por Timm
Ignacio,
using :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() } I get the
attached error.log.
Best regards, Timm.
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
Newsbeitrag news:4c2ce4b5$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Timm,
>
> You can print the report twice and get the page number from oReport:nPage
> property
>
> with object oReport1
> :lPreview := .T.
> :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() }
> :Run()
> nTotalPages := :nPage
> :oDevice:OnPreview := NIL
> End with
>
> Have not tested BTW.
>
> Regards,
>
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
>
>
> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
> noticias:4c2cba78$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Hi,
>>
>> is there a way to print "page 1 of x" in a report?
>>
>> I know that it is difficult to get the number of pages before printing is
>> done but perhaps it is possible to print a virtual report and use its
>> nPage
>> for the real report?
>>
>> Best regards, Timm.
>
--

Attached files Error.log (11 B)Â

total pages in reports

Publicado: Vie Jul 02, 2010 10:23 am
por ignacio
{ |oPrn| oPrn:oPreviewDC:Destroy(), .F. }
Sorry for the typo
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
noticias:4c2d823e$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ignacio,
>
> using :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() } I get the
> attached error.log.
>
> Best regards, Timm.
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
> Newsbeitrag news:4c2ce4b5$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Timm,
>>
>> You can print the report twice and get the page number from oReport:nPage
>> property
>>
>> with object oReport1
>> :lPreview := .T.
>> :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() }
>> :Run()
>> nTotalPages := :nPage
>> :oDevice:OnPreview := NIL
>> End with
>>
>> Have not tested BTW.
>>
>> Regards,
>>
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Equipo de Xailer / Xailer team]
>> http://www.xailer.com
>> http://www.xailer.info
>> http://www.xailer.com/forum
>> http://www.xailer.com/dokuwiki
>>
>>
>> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
>> noticias:4c2cba78$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Hi,
>>>
>>> is there a way to print "page 1 of x" in a report?
>>>
>>> I know that it is difficult to get the number of pages before printing
>>> is
>>> done but perhaps it is possible to print a virtual report and use its
>>> nPage
>>> for the real report?
>>>
>>> Best regards, Timm.
>>

total pages in reports

Publicado: Vie Jul 02, 2010 11:56 am
por Timm
Ignacio,
works great, many thanks!
Best regards, Timm.
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
Newsbeitrag news:[email=4c2da1e9@svctag-j7w3v3j....]4c2da1e9@svctag-j7w3v3j....[/email]
> { |oPrn| oPrn:oPreviewDC:Destroy(), .F. }
>
> Sorry for the typo
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
>
>
> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
> noticias:4c2d823e$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Ignacio,
>>
>> using :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() } I get
>> the
>> attached error.log.
>>
>> Best regards, Timm.
>>
>> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
>> Newsbeitrag news:4c2ce4b5$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Timm,
>>>
>>> You can print the report twice and get the page number from
>>> oReport:nPage
>>> property
>>>
>>> with object oReport1
>>> :lPreview := .T.
>>> :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() }
>>> :Run()
>>> nTotalPages := :nPage
>>> :oDevice:OnPreview := NIL
>>> End with
>>>
>>> Have not tested BTW.
>>>
>>> Regards,
>>>
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Equipo de Xailer / Xailer team]
>>> http://www.xailer.com
>>> http://www.xailer.info
>>> http://www.xailer.com/forum
>>> http://www.xailer.com/dokuwiki
>>>
>>>
>>> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
>>> noticias:4c2cba78$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>> Hi,
>>>>
>>>> is there a way to print "page 1 of x" in a report?
>>>>
>>>> I know that it is difficult to get the number of pages before printing
>>>> is
>>>> done but perhaps it is possible to print a virtual report and use its
>>>> nPage
>>>> for the real report?
>>>>
>>>> Best regards, Timm.
>>>

total pages in reports

Publicado: Vie Jul 02, 2010 4:22 pm
por Pedro Sousa e Faro
Hi Timm,
Are you the author of "Visual Designer ?. Great product !
Have you tried FastReports ?
In our big apps with Xailer we use FastReport anda works great !.
And is so simple to create complexed reports
Regards
Pedro Faro
"Timm Sodtalbers" <info@sodtalbers-it.de> escreveu na mensagem
news:4c2db7d9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ignacio,
>
> works great, many thanks!
>
> Best regards, Timm.
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
> Newsbeitrag news:[email=4c2da1e9@svctag-j7w3v3j....]4c2da1e9@svctag-j7w3v3j....[/email]
>> { |oPrn| oPrn:oPreviewDC:Destroy(), .F. }
>>
>> Sorry for the typo
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Equipo de Xailer / Xailer team]
>> http://www.xailer.com
>> http://www.xailer.info
>> http://www.xailer.com/forum
>> http://www.xailer.com/dokuwiki
>>
>>
>> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
>> noticias:4c2d823e$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Ignacio,
>>>
>>> using :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() } I get
>>> the
>>> attached error.log.
>>>
>>> Best regards, Timm.
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
>>> Newsbeitrag news:4c2ce4b5$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>> Timm,
>>>>
>>>> You can print the report twice and get the page number from
>>>> oReport:nPage
>>>> property
>>>>
>>>> with object oReport1
>>>> :lPreview := .T.
>>>> :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() }
>>>> :Run()
>>>> nTotalPages := :nPage
>>>> :oDevice:OnPreview := NIL
>>>> End with
>>>>
>>>> Have not tested BTW.
>>>>
>>>> Regards,
>>>>
>>>>
>>>> --
>>>> Ignacio Ortiz de Zúñiga
>>>> [Equipo de Xailer / Xailer team]
>>>> http://www.xailer.com
>>>> http://www.xailer.info
>>>> http://www.xailer.com/forum
>>>> http://www.xailer.com/dokuwiki
>>>>
>>>>
>>>> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
>>>> noticias:4c2cba78$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>>> Hi,
>>>>>
>>>>> is there a way to print "page 1 of x" in a report?
>>>>>
>>>>> I know that it is difficult to get the number of pages before printing
>>>>> is
>>>>> done but perhaps it is possible to print a virtual report and use its
>>>>> nPage
>>>>> for the real report?
>>>>>
>>>>> Best regards, Timm.
>>>>

total pages in reports

Publicado: Sab Jul 03, 2010 6:44 am
por Timm
Hi Pedro,
> Are you the author of "Visual Designer ?. Great product !
yes, I am. Many thanks for your kind words.
> Have you tried FastReports ?
Yes, FastReport is really cool.
Best regards, Timm.
"Pedro Faro" <psfaro@shi.pt> schrieb im Newsbeitrag
news:[email=4c2df630@svctag-j7w3v3j....]4c2df630@svctag-j7w3v3j....[/email]
> Hi Timm,
>
> Are you the author of "Visual Designer ?. Great product !
>
>
> Have you tried FastReports ?
>
> In our big apps with Xailer we use FastReport anda works great !.
>
> And is so simple to create complexed reports
>
> Regards
>
> Pedro Faro
>
>
>
>
>
> "Timm Sodtalbers" <info@sodtalbers-it.de> escreveu na mensagem
> news:4c2db7d9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Ignacio,
>>
>> works great, many thanks!
>>
>> Best regards, Timm.
>>
>> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
>> Newsbeitrag news:[email=4c2da1e9@svctag-j7w3v3j....]4c2da1e9@svctag-j7w3v3j....[/email]
>>> { |oPrn| oPrn:oPreviewDC:Destroy(), .F. }
>>>
>>> Sorry for the typo
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Equipo de Xailer / Xailer team]
>>> http://www.xailer.com
>>> http://www.xailer.info
>>> http://www.xailer.com/forum
>>> http://www.xailer.com/dokuwiki
>>>
>>>
>>> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
>>> noticias:4c2d823e$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>> Ignacio,
>>>>
>>>> using :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() } I get
>>>> the
>>>> attached error.log.
>>>>
>>>> Best regards, Timm.
>>>>
>>>> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
>>>> Newsbeitrag news:4c2ce4b5$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>>> Timm,
>>>>>
>>>>> You can print the report twice and get the page number from
>>>>> oReport:nPage
>>>>> property
>>>>>
>>>>> with object oReport1
>>>>> :lPreview := .T.
>>>>> :oDevice:OnPreview := { |oPrn| oPrn:oPreviewDC:Destroy() }
>>>>> :Run()
>>>>> nTotalPages := :nPage
>>>>> :oDevice:OnPreview := NIL
>>>>> End with
>>>>>
>>>>> Have not tested BTW.
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>> --
>>>>> Ignacio Ortiz de Zúñiga
>>>>> [Equipo de Xailer / Xailer team]
>>>>> http://www.xailer.com
>>>>> http://www.xailer.info
>>>>> http://www.xailer.com/forum
>>>>> http://www.xailer.com/dokuwiki
>>>>>
>>>>>
>>>>> "Timm Sodtalbers" <info@sodtalbers-it.de> escribió en el mensaje de
>>>>> noticias:4c2cba78$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>>>> Hi,
>>>>>>
>>>>>> is there a way to print "page 1 of x" in a report?
>>>>>>
>>>>>> I know that it is difficult to get the number of pages before
>>>>>> printing is
>>>>>> done but perhaps it is possible to print a virtual report and use its
>>>>>> nPage
>>>>>> for the real report?
>>>>>>
>>>>>> Best regards, Timm.
>>>>>