Is there a way to switch between oPrn:setportrait() and oPrn:setlandscape() in the same printjob. (without ENDPRINT before switching)?
Is there a way to switch between oPrn:setportrait() and oPrn:setlandscape() in the same printjob. (without ENDPRINT before switching)?
Has anyone a idea?? Its badly needed. Thanks!
Günther,
Do you have a small test program that shows the problem?
James
Günther,
I guess that you mean to do such change from one page to another page, right ?
Thanks for your response! Yes, Antonio, from one page to another. If i now do so, the coordinates are wrong from page to page!
Günther,
Could you provide a small example of how you are doing it ? thanks
oPrn := Printbegin(....)
PAGE
oPrn:setlandscape()
oPrn:say(.....)
ENDPAGE
PAGE
oPrn:setportrait()
oPrn:say(....)
ENDPAGE
ENDPRINT#include "fivewin.ch"
function Main()
local oPrn
PRINTER oPrn PREVIEW
PAGE
oPrn:setlandscape()
oPrn:say( 1, 1, "One" )
ENDPAGE
PAGE
oPrn:setportrait()
oPrn:say( 1, 1, "One" )
ENDPAGE
ENDPRINT
return nilAntonio, the print are always on ALL pages in the last called format (portrait or landscape)! Is there no way to switch from one to another format from page to page?
BUT ONLY, if PREVIEW is active this wrong behavoir is present!
Günther,
Do you mean that you would like to see the second page on landscape from the preview ?
Antonio, in your above code the second page are also in landscape not as portrait as programmed. WITH preview the print-output is as the preview shows and all pages are in the last programmed format. WITHOUT preview the print-output seems to be ok.
Günther,
My guess is that the preview does not support the change of orientation from page to page,
That is something that may require many changes, so we can not provide an inmediate fix for it, sorry
Hi.
I had the same problem years ago and I solved using for that pages the print using fonts with escapement at 900.
It's an hard work, I know, but is the only solution I found.
Happy sunday.
How about just printing three separate reports in the needed order? You might have to programmatically adjust the page numbers, but I think this could be done. To the user it would just seem like one report.
James
James,
Günther want mixed orientations in a single preview and this is not possible with the current preview class.
EMG