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.

Xailer 1.7.5 TReport:lAutoLand doesn't work

Xailer professional forum in English
Responder
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Printing report which needs landscape orientation. In preview it is displayed
correctly in landscape but the printer is printing it in portrait orientation.
Please help!
Regards
Ingo
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por ignacio »

Ingo,
I have just tested with sample PrintingreportsBasicReports including this
line on first report:
Printer:nOrientation := 2
And it works correctly in preview and printing.
Regards ,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Printing report which needs landscape orientation. In preview it is
> displayed
> correctly in landscape but the printer is printing it in portrait
> orientation.
>
> Please help!
>
> Regards
> Ingo
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por NoName »

Ingo,
I have just tested with sample PrintingreportsBasicReports including this
line on first report:
Printer:nOrientation := 2
And it works correctly in preview and printing.
Regards ,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Printing report which needs landscape orientation. In preview it is
> displayed
> correctly in landscape but the printer is printing it in portrait
> orientation.
>
> Please help!
>
> Regards
> Ingo
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
do it again and change the printer in the preview. Then you will see that
the printing is in portrait and not in landscape as it is displayed in the
preview.
In the previous versions of Xailer the report was printed after changing
the printer in preview in landscape too.
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>Ingo,
>
>I have just tested with sample PrintingreportsBasicReports including
this
>line on first report:
>
>Printer:nOrientation := 2
>
>And it works correctly in preview and printing.
>
>Regards ,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>
>
>"Ingo" <info@mandantwin.com> escribió en el mensaje
>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>
>> Printing report which needs landscape orientation. In preview it is
>> displayed
>> correctly in landscape but the printer is printing it in portrait
>> orientation.
>>
>> Please help!
>>
>> Regards
>> Ingo
>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
do it again and change the printer in the preview. Then you will see that
the printing is in portrait and not in landscape as it is displayed in the
preview.
In the previous versions of Xailer the report was printed after changing
the printer in preview in landscape too.
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>Ingo,
>
>I have just tested with sample PrintingreportsBasicReports including
this
>line on first report:
>
>Printer:nOrientation := 2
>
>And it works correctly in preview and printing.
>
>Regards ,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>
>
>"Ingo" <info@mandantwin.com> escribió en el mensaje
>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>
>> Printing report which needs landscape orientation. In preview it is
>> displayed
>> correctly in landscape but the printer is printing it in portrait
>> orientation.
>>
>> Please help!
>>
>> Regards
>> Ingo
>
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por ignacio »

Ingo,
> do it again and change the printer in the preview. Then you will see that
> the printing is in portrait and not in landscape as it is displayed in the
> preview.
I am afraid the printing on any printer still is in landscape mode. When you
choose the option 'Select printer', form the printing dialog click on the
'Properties' button and check the paper orientation. In my case, all the
installed printers correctly indicate that the printing will be done in
landscape mode.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea3eeb$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
> do it again and change the printer in the preview. Then you will see that
> the printing is in portrait and not in landscape as it is displayed in the
> preview.
>
> In the previous versions of Xailer the report was printed after changing
> the printer in preview in landscape too.
>
> Regards
>
> Ingo
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>>Ingo,
>>
>>I have just tested with sample PrintingreportsBasicReports including
> this
>>line on first report:
>>
>>Printer:nOrientation := 2
>>
>>And it works correctly in preview and printing.
>>
>>Regards ,
>>
>>--
>>Ignacio Ortiz de Zúñiga
>>http://www.xailer.com
>>
>>
>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>
>>> Printing report which needs landscape orientation. In preview it is
>>> displayed
>>> correctly in landscape but the printer is printing it in portrait
>>> orientation.
>>>
>>> Please help!
>>>
>>> Regards
>>> Ingo
>>
>>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por NoName »

Ingo,
> do it again and change the printer in the preview. Then you will see that
> the printing is in portrait and not in landscape as it is displayed in the
> preview.
I am afraid the printing on any printer still is in landscape mode. When you
choose the option 'Select printer', form the printing dialog click on the
'Properties' button and check the paper orientation. In my case, all the
installed printers correctly indicate that the printing will be done in
landscape mode.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea3eeb$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
> do it again and change the printer in the preview. Then you will see that
> the printing is in portrait and not in landscape as it is displayed in the
> preview.
>
> In the previous versions of Xailer the report was printed after changing
> the printer in preview in landscape too.
>
> Regards
>
> Ingo
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>>Ingo,
>>
>>I have just tested with sample PrintingreportsBasicReports including
> this
>>line on first report:
>>
>>Printer:nOrientation := 2
>>
>>And it works correctly in preview and printing.
>>
>>Regards ,
>>
>>--
>>Ignacio Ortiz de Zúñiga
>>http://www.xailer.com
>>
>>
>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>
>>> Printing report which needs landscape orientation. In preview it is
>>> displayed
>>> correctly in landscape but the printer is printing it in portrait
>>> orientation.
>>>
>>> Please help!
>>>
>>> Regards
>>> Ingo
>>
>>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
sorry it isn't so here. In the preview it is landscape but the printer orientation
is portrait (it is the standard setting on the printer).
Howe can I adapt the printer orientation to the preview page orientation
when the printing is started from the preview control?
Regards
Ingo
>I am afraid the printing on any printer still is in landscape mode. When
you
>choose the option 'Select printer', form the printing dialog click on the
>'Properties' button and check the paper orientation. In my case, all the
>installed printers correctly indicate that the printing will be done in
>landscape mode.
>
>Regards,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>
>
>"Ingo" <info@mandantwin.com> escribió en el mensaje
>news:46ea3eeb$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>
>> Ignacio,
>>
>> do it again and change the printer in the preview. Then you will see that
>> the printing is in portrait and not in landscape as it is displayed in
the
>> preview.
>>
>> In the previous versions of Xailer the report was printed after changing
>> the printer in preview in landscape too.
>>
>> Regards
>>
>> Ingo
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>>>Ingo,
>>>
>>>I have just tested with sample PrintingreportsBasicReports including
>> this
>>>line on first report:
>>>
>>>Printer:nOrientation := 2
>>>
>>>And it works correctly in preview and printing.
>>>
>>>Regards ,
>>>
>>>--
>>>Ignacio Ortiz de Zúñiga
>>>http://www.xailer.com
>>>
>>>
>>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>
>>>> Printing report which needs landscape orientation. In preview it is
>>>> displayed
>>>> correctly in landscape but the printer is printing it in portrait
>>>> orientation.
>>>>
>>>> Please help!
>>>>
>>>> Regards
>>>> Ingo
>>>
>>>
>>
>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
sorry it isn't so here. In the preview it is landscape but the printer orientation
is portrait (it is the standard setting on the printer).
Howe can I adapt the printer orientation to the preview page orientation
when the printing is started from the preview control?
Regards
Ingo
>I am afraid the printing on any printer still is in landscape mode. When
you
>choose the option 'Select printer', form the printing dialog click on the
>'Properties' button and check the paper orientation. In my case, all the
>installed printers correctly indicate that the printing will be done in
>landscape mode.
>
>Regards,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>
>
>"Ingo" <info@mandantwin.com> escribió en el mensaje
>news:46ea3eeb$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>
>> Ignacio,
>>
>> do it again and change the printer in the preview. Then you will see that
>> the printing is in portrait and not in landscape as it is displayed in
the
>> preview.
>>
>> In the previous versions of Xailer the report was printed after changing
>> the printer in preview in landscape too.
>>
>> Regards
>>
>> Ingo
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>>>Ingo,
>>>
>>>I have just tested with sample PrintingreportsBasicReports including
>> this
>>>line on first report:
>>>
>>>Printer:nOrientation := 2
>>>
>>>And it works correctly in preview and printing.
>>>
>>>Regards ,
>>>
>>>--
>>>Ignacio Ortiz de Zúñiga
>>>http://www.xailer.com
>>>
>>>
>>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>
>>>> Printing report which needs landscape orientation. In preview it is
>>>> displayed
>>>> correctly in landscape but the printer is printing it in portrait
>>>> orientation.
>>>>
>>>> Please help!
>>>>
>>>> Regards
>>>> Ingo
>>>
>>>
>>
>
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por ignacio »

Ingo,
> sorry it isn't so here. In the preview it is landscape but the printer
> orientation
> is portrait (it is the standard setting on the printer).
Here is working fine. I hope someone can also test it. The paper orientation
on all my printers is also portrarit, but when I click on the Printer
properties button from the Preview 'Select printer' option it shows
correctly the landscape orientation.
> Howe can I adapt the printer orientation to the preview page orientation
> when the printing is started from the preview control?
I am afraid there is no event there you can trap.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea5245$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
> sorry it isn't so here. In the preview it is landscape but the printer
> orientation
> is portrait (it is the standard setting on the printer).
>
> Howe can I adapt the printer orientation to the preview page orientation
> when the printing is started from the preview control?
>
> Regards
>
> Ingo
>
>>I am afraid the printing on any printer still is in landscape mode. When
> you
>>choose the option 'Select printer', form the printing dialog click on the
>
>>'Properties' button and check the paper orientation. In my case, all the
>
>>installed printers correctly indicate that the printing will be done in
>
>>landscape mode.
>>
>>Regards,
>>
>>--
>>Ignacio Ortiz de Zúñiga
>>http://www.xailer.com
>>
>>
>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>news:46ea3eeb$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>
>>> Ignacio,
>>>
>>> do it again and change the printer in the preview. Then you will see
>>> that
>>> the printing is in portrait and not in landscape as it is displayed in
> the
>>> preview.
>>>
>>> In the previous versions of Xailer the report was printed after changing
>>> the printer in preview in landscape too.
>>>
>>> Regards
>>>
>>> Ingo
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>>>>Ingo,
>>>>
>>>>I have just tested with sample PrintingreportsBasicReports including
>>> this
>>>>line on first report:
>>>>
>>>>Printer:nOrientation := 2
>>>>
>>>>And it works correctly in preview and printing.
>>>>
>>>>Regards ,
>>>>
>>>>--
>>>>Ignacio Ortiz de Zúñiga
>>>>http://www.xailer.com
>>>>
>>>>
>>>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>>>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>>
>>>>> Printing report which needs landscape orientation. In preview it is
>>>>> displayed
>>>>> correctly in landscape but the printer is printing it in portrait
>>>>> orientation.
>>>>>
>>>>> Please help!
>>>>>
>>>>> Regards
>>>>> Ingo
>>>>
>>>>
>>>
>>
>>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por NoName »

Ingo,
> sorry it isn't so here. In the preview it is landscape but the printer
> orientation
> is portrait (it is the standard setting on the printer).
Here is working fine. I hope someone can also test it. The paper orientation
on all my printers is also portrarit, but when I click on the Printer
properties button from the Preview 'Select printer' option it shows
correctly the landscape orientation.
> Howe can I adapt the printer orientation to the preview page orientation
> when the printing is started from the preview control?
I am afraid there is no event there you can trap.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea5245$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
> sorry it isn't so here. In the preview it is landscape but the printer
> orientation
> is portrait (it is the standard setting on the printer).
>
> Howe can I adapt the printer orientation to the preview page orientation
> when the printing is started from the preview control?
>
> Regards
>
> Ingo
>
>>I am afraid the printing on any printer still is in landscape mode. When
> you
>>choose the option 'Select printer', form the printing dialog click on the
>
>>'Properties' button and check the paper orientation. In my case, all the
>
>>installed printers correctly indicate that the printing will be done in
>
>>landscape mode.
>>
>>Regards,
>>
>>--
>>Ignacio Ortiz de Zúñiga
>>http://www.xailer.com
>>
>>
>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>news:46ea3eeb$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>
>>> Ignacio,
>>>
>>> do it again and change the printer in the preview. Then you will see
>>> that
>>> the printing is in portrait and not in landscape as it is displayed in
> the
>>> preview.
>>>
>>> In the previous versions of Xailer the report was printed after changing
>>> the printer in preview in landscape too.
>>>
>>> Regards
>>>
>>> Ingo
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote:
>>>>Ingo,
>>>>
>>>>I have just tested with sample PrintingreportsBasicReports including
>>> this
>>>>line on first report:
>>>>
>>>>Printer:nOrientation := 2
>>>>
>>>>And it works correctly in preview and printing.
>>>>
>>>>Regards ,
>>>>
>>>>--
>>>>Ignacio Ortiz de Zúñiga
>>>>http://www.xailer.com
>>>>
>>>>
>>>>"Ingo" <info@mandantwin.com> escribió en el mensaje
>>>>news:46ea3883$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>>
>>>>> Printing report which needs landscape orientation. In preview it is
>>>>> displayed
>>>>> correctly in landscape but the printer is printing it in portrait
>>>>> orientation.
>>>>>
>>>>> Please help!
>>>>>
>>>>> Regards
>>>>> Ingo
>>>>
>>>>
>>>
>>
>>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
I found the reason in Report.prg.
In method Adjust()of Xreport is ::lOrientChg set to .T. if the printing needs
Landscape
WITH OBJECT ::oDevice
nX := :PaperRes()[ 1 ]
IF ::nWidth > nX .AND. :nOrientation == poPORTRAIT .AND. ::lAutoLand
:EndDoc()
:nOrientation := poLANDSCAPE
::lOrientChg := .T.
:StartDoc()
IF ::oPen != Nil
:oCanvas:oPen := ::oPen
ELSE
:oCanvas:oPen := TPen():New()
ENDIF
ENDIF
END WITH
In the method Run() of XReport is the paper orientation set back to Portrait
if ::lOrientChg before the printer:preview opened.
IF ::lOrientChg
::oDevice:nOrientation := poPORTRAIT
ENDIF
IF ::lPreview
::oDevice:Preview( ,::lPreviewModal )
ENDIF
Therefore the Printer:nOrientation == 1 when I print from the preview.
I changed the code like this:
IF ::lPreview
::oDevice:Preview( ,::lPreviewModal )
ENDIF
//after preview
IF ::lOrientChg
::oDevice:nOrientation := poPORTRAIT
ENDIF

and now it works.
Is this Ok?
Regards
Ingo
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
I found the reason in Report.prg.
In method Adjust()of Xreport is ::lOrientChg set to .T. if the printing needs
Landscape
WITH OBJECT ::oDevice
nX := :PaperRes()[ 1 ]
IF ::nWidth > nX .AND. :nOrientation == poPORTRAIT .AND. ::lAutoLand
:EndDoc()
:nOrientation := poLANDSCAPE
::lOrientChg := .T.
:StartDoc()
IF ::oPen != Nil
:oCanvas:oPen := ::oPen
ELSE
:oCanvas:oPen := TPen():New()
ENDIF
ENDIF
END WITH
In the method Run() of XReport is the paper orientation set back to Portrait
if ::lOrientChg before the printer:preview opened.
IF ::lOrientChg
::oDevice:nOrientation := poPORTRAIT
ENDIF
IF ::lPreview
::oDevice:Preview( ,::lPreviewModal )
ENDIF
Therefore the Printer:nOrientation == 1 when I print from the preview.
I changed the code like this:
IF ::lPreview
::oDevice:Preview( ,::lPreviewModal )
ENDIF
//after preview
IF ::lOrientChg
::oDevice:nOrientation := poPORTRAIT
ENDIF

and now it works.
Is this Ok?
Regards
Ingo
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por ignacio »

Ingo,
OK I see the problem, you did not tell me that you were using the automatic
landscape mode of TReport and in all my test I set directly
Printer:nOrientation to 2 and that way it works correctly.
Your fix will work ONLY when the Preview window is modal I am afraid. But it
will be fixed on next update.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea7e59$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
> I found the reason in Report.prg.
>
> In method Adjust()of Xreport is ::lOrientChg set to .T. if the printing
> needs
> Landscape
>
> WITH OBJECT ::oDevice
> nX := :PaperRes()[ 1 ]
> IF ::nWidth > nX .AND. :nOrientation == poPORTRAIT .AND. ::lAutoLand
> :EndDoc()
> :nOrientation := poLANDSCAPE
> ::lOrientChg := .T.
> :StartDoc()
> IF ::oPen != Nil
> :oCanvas:oPen := ::oPen
> ELSE
> :oCanvas:oPen := TPen():New()
> ENDIF
> ENDIF
> END WITH
>
> In the method Run() of XReport is the paper orientation set back to
> Portrait
> if ::lOrientChg before the printer:preview opened.
>
> IF ::lOrientChg
> ::oDevice:nOrientation := poPORTRAIT
> ENDIF
>
> IF ::lPreview
> ::oDevice:Preview( ,::lPreviewModal )
> ENDIF
>
> Therefore the Printer:nOrientation == 1 when I print from the preview.
>
> I changed the code like this:
>
> IF ::lPreview
> ::oDevice:Preview( ,::lPreviewModal )
> ENDIF
> //after preview
> IF ::lOrientChg
> ::oDevice:nOrientation := poPORTRAIT
> ENDIF
>
> and now it works.
> Is this Ok?
>
> Regards
>
> Ingo
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por NoName »

Ingo,
OK I see the problem, you did not tell me that you were using the automatic
landscape mode of TReport and in all my test I set directly
Printer:nOrientation to 2 and that way it works correctly.
Your fix will work ONLY when the Preview window is modal I am afraid. But it
will be fixed on next update.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea7e59$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
> I found the reason in Report.prg.
>
> In method Adjust()of Xreport is ::lOrientChg set to .T. if the printing
> needs
> Landscape
>
> WITH OBJECT ::oDevice
> nX := :PaperRes()[ 1 ]
> IF ::nWidth > nX .AND. :nOrientation == poPORTRAIT .AND. ::lAutoLand
> :EndDoc()
> :nOrientation := poLANDSCAPE
> ::lOrientChg := .T.
> :StartDoc()
> IF ::oPen != Nil
> :oCanvas:oPen := ::oPen
> ELSE
> :oCanvas:oPen := TPen():New()
> ENDIF
> ENDIF
> END WITH
>
> In the method Run() of XReport is the paper orientation set back to
> Portrait
> if ::lOrientChg before the printer:preview opened.
>
> IF ::lOrientChg
> ::oDevice:nOrientation := poPORTRAIT
> ENDIF
>
> IF ::lPreview
> ::oDevice:Preview( ,::lPreviewModal )
> ENDIF
>
> Therefore the Printer:nOrientation == 1 when I print from the preview.
>
> I changed the code like this:
>
> IF ::lPreview
> ::oDevice:Preview( ,::lPreviewModal )
> ENDIF
> //after preview
> IF ::lOrientChg
> ::oDevice:nOrientation := poPORTRAIT
> ENDIF
>
> and now it works.
> Is this Ok?
>
> Regards
>
> Ingo
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
>OK I see the problem, you did not tell me that you were using the automatic
>landscape mode of TReport and in all my test I set directly
>Printer:nOrientation to 2 and that way it works correctly.
Sorry Ignacio see the subject of my posts. I was only speaking about TReport:lAutoLand.
:-)
>Your fix will work ONLY when the Preview window is modal I am afraid. But
it
>will be fixed on next update.
I need the fixed obj as soon as possible, because the publishing of the new
version of my app is scheduled for the 20th of September. Is it possible
to send me the fixed module?
Thanks in advance
Ingo
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
>OK I see the problem, you did not tell me that you were using the automatic
>landscape mode of TReport and in all my test I set directly
>Printer:nOrientation to 2 and that way it works correctly.
Sorry Ignacio see the subject of my posts. I was only speaking about TReport:lAutoLand.
:-)
>Your fix will work ONLY when the Preview window is modal I am afraid. But
it
>will be fixed on next update.
I need the fixed obj as soon as possible, because the publishing of the new
version of my app is scheduled for the 20th of September. Is it possible
to send me the fixed module?
Thanks in advance
Ingo
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por ignacio »

Ingo,
I highly recommend that you use version 1.65. I do not know when the problem
will be fixed and when we are going to publish the fix, but as I told you,
is better to use version 1.65 since is more stable.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea863c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
>>OK I see the problem, you did not tell me that you were using the
>>automatic
>
>
>>landscape mode of TReport and in all my test I set directly
>>Printer:nOrientation to 2 and that way it works correctly.
>
> Sorry Ignacio see the subject of my posts. I was only speaking about
> TReport:lAutoLand.
> :-)
>
>>Your fix will work ONLY when the Preview window is modal I am afraid. But
> it
>>will be fixed on next update.
>
> I need the fixed obj as soon as possible, because the publishing of the
> new
> version of my app is scheduled for the 20th of September. Is it possible
> to send me the fixed module?
>
> Thanks in advance
>
> Ingo
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por NoName »

Ingo,
I highly recommend that you use version 1.65. I do not know when the problem
will be fixed and when we are going to publish the fix, but as I told you,
is better to use version 1.65 since is more stable.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Ingo" <info@mandantwin.com> escribió en el mensaje
news:46ea863c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>
> Ignacio,
>
>>OK I see the problem, you did not tell me that you were using the
>>automatic
>
>
>>landscape mode of TReport and in all my test I set directly
>>Printer:nOrientation to 2 and that way it works correctly.
>
> Sorry Ignacio see the subject of my posts. I was only speaking about
> TReport:lAutoLand.
> :-)
>
>>Your fix will work ONLY when the Preview window is modal I am afraid. But
> it
>>will be fixed on next update.
>
> I need the fixed obj as soon as possible, because the publishing of the
> new
> version of my app is scheduled for the 20th of September. Is it possible
> to send me the fixed module?
>
> Thanks in advance
>
> Ingo
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
I'm using now Version 1.65. The bug is in this version too!!!!!
Regards
Ingo
>Ingo,
>
>I highly recommend that you use version 1.65. I do not know when the problem
>will be fixed and when we are going to publish the fix, but as I told you,
>is better to use version 1.65 since is more stable.
>
>Regards,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>
>
>"Ingo" <info@mandantwin.com> escribió en el mensaje
>news:46ea863c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>
>> Ignacio,
>>
>>>OK I see the problem, you did not tell me that you were using the
>>>automatic
>>
>>
>>>landscape mode of TReport and in all my test I set directly
>>>Printer:nOrientation to 2 and that way it works correctly.
>>
>> Sorry Ignacio see the subject of my posts. I was only speaking about
>> TReport:lAutoLand.
>> :-)
>>
>>>Your fix will work ONLY when the Preview window is modal I am afraid.
But
>> it
>>>will be fixed on next update.
>>
>> I need the fixed obj as soon as possible, because the publishing of the
>> new
>> version of my app is scheduled for the 20th of September. Is it possible
>> to send me the fixed module?
>>
>> Thanks in advance
>>
>> Ingo
>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Xailer 1.7.5 TReport:lAutoLand doesn't work

Mensaje por Ingo »

Ignacio,
I'm using now Version 1.65. The bug is in this version too!!!!!
Regards
Ingo
>Ingo,
>
>I highly recommend that you use version 1.65. I do not know when the problem
>will be fixed and when we are going to publish the fix, but as I told you,
>is better to use version 1.65 since is more stable.
>
>Regards,
>
>--
>Ignacio Ortiz de Zúñiga
>http://www.xailer.com
>
>
>"Ingo" <info@mandantwin.com> escribió en el mensaje
>news:46ea863c$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>
>> Ignacio,
>>
>>>OK I see the problem, you did not tell me that you were using the
>>>automatic
>>
>>
>>>landscape mode of TReport and in all my test I set directly
>>>Printer:nOrientation to 2 and that way it works correctly.
>>
>> Sorry Ignacio see the subject of my posts. I was only speaking about
>> TReport:lAutoLand.
>> :-)
>>
>>>Your fix will work ONLY when the Preview window is modal I am afraid.
But
>> it
>>>will be fixed on next update.
>>
>> I need the fixed obj as soon as possible, because the publishing of the
>> new
>> version of my app is scheduled for the 20th of September. Is it possible
>> to send me the fixed module?
>>
>> Thanks in advance
>>
>> Ingo
>
>
Responder