In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

total pages in reports

Xailer professional forum in English
Responder
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

total pages in reports

Mensaje 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.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9246
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

total pages in reports

Mensaje 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.
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

total pages in reports

Mensaje 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)Â
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9246
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

total pages in reports

Mensaje 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.
>>
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

total pages in reports

Mensaje 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.
>>>
Pedro Sousa e Faro
Mensajes: 91
Registrado: Mié May 30, 2007 5:25 pm

total pages in reports

Mensaje 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.
>>>>
Timm
Mensajes: 136
Registrado: Lun Jun 21, 2010 11:01 am

total pages in reports

Mensaje 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.
>>>>>
Responder