Page 1 of 2

Printing Normal and LandScape

Posted: Sat Jan 15, 2011 7:18 am
by John Hohensee
I have a report that prints most pages in portrait mode but one page in the middle of the report needs landscape then back to portrait. Have tried DCPRINT ORIENTATION 2 FONT "8.Courier New" then back to ORIENTATION 1 FONT "10.Courier New"
but the report is still all in Portrait mode.

DCPRINT ORIENTATION 1 SIZE 60,80 FONT "10 Courier New"
print 2-4 pages
DCPRINT ORIENTATION 2 SIZE 60,142 FONT "8.Coruier New"
print 3 pages
DCPRINT ORIENTATION 1 SIZE 60,80 FONT "10.Courier New"
print final page

All the print is in PORTRAIT mode

Re: Printing Normal and LandScape

Posted: Sat Jan 15, 2011 9:02 am
by rdonnay
Try this:

Code: Select all

DCPRINT ON ORIENTATION 1 SIZE 60,80 FONT "10 Courier New"
print 2-4 pages
DCPRINT ENDPAGE
DCPRINT ORIENTATION 2 
DCPRINT SIZE 60,142 
DCPRINT FONT "8.Coruier New"
DCPRINT STARTPAGE
print 3 pages
DCPRINT ENDPAGE
DCPRINT ORIENTATION 1 
DCPRINT SIZE 60,80 
DCPRINT FONT "10.Courier New"
DCPRINT STARTPAGE
print final page
DCPRINT OFF

Re: Printing Normal and LandScape

Posted: Sun Jan 16, 2011 7:36 am
by John Hohensee
I tried but sorry no work, the form still prints in PORTRAIT mode :cry:
I guess we will just $ amounts and use another way.
By the way your board really ROCKS

Re: Printing Normal and LandScape

Posted: Sun Jan 16, 2011 8:33 am
by rdonnay
This should work.

I ran the sample program \exp19\samples\printer\document.prg and it works perfectly.

Give it a try.

Re: Printing Normal and LandScape

Posted: Sun Jan 23, 2011 8:50 am
by John Hohensee
The only item not shown in your sample was DCPRINT PAPERBIN
OK I tried this method

DCPRINT ORIENTATION 1 <- BAD PARAMETER { , 1 , } WTHF

Then I tried the following

DCPRINT ON SIZE 60,142 ORIENTATION 2 FONT "8.Courier New" PAPERBIN 2
Ok so far -> DCPRINT STARTPAGE <- INVALID PARAMETER WTHF

This year EXPRESS Just HATES ME
Earlier I had a corrupted ALASKA now I wonder if my EXP19 is having the same PMS

I'm at wits end, very short trip http://bb.donnay-software.com:8080/phpB ... &f=2&t=385#

Re: Printing Normal and LandScape

Posted: Sun Jan 23, 2011 5:59 pm
by rdonnay
This doesn't make sense.

Possibly, there is a very old DCDIALOG.CH that it is finding.

Re: Printing Normal and LandScape

Posted: Sun Jan 23, 2011 10:39 pm
by Auge_Ohr
John Hohensee wrote:I tried but sorry no work, the form still prints in PORTRAIT mode :cry:
are you shure that your Printer use c:\ALASKA\XPPW32\Include\xbpdev.ch Konstante ?

i just had a HP P2055dn and wonder why o:Paperbin does not work.
Than i look into Printer Manual and saw "other" Value for o:Paperbin.

Re: Printing Normal and LandScape

Posted: Sat Jan 29, 2011 7:57 am
by John Hohensee
I also removed all the #include except DCDIALOG and DCPRINT the two that your program showed, the error''s stopped. But no LANDSCAPE mode. Although the report with 132 columns did print, but NOT in LANDSCAPE mode very confusing.

I have another procedure to print just the long list uses only the LANDSCAPE mode and it works!

The original list of #include had SET.CH xbp.ch appevent.ch DCPICK.CH DCAPP.CH DCBITMAP.CH DCICON.CH DCCURSOR.CH
DCXTOC.CH DCGRA.CH common.ch fileio.ch dbstruct.ch some where in the long list of #include the error
DCPRINT ORIENTATION 2 - caused the error { , 2, } the same error with DCPRINT PAPERBIN

Just for you: I am using Alaska 1.90 build 331 and Express 1.90 build 254, when I get rich I'll update the alaska above the lowest level that they sell. Sure missed the chance for another visit to Idaho, maybe next year when all the area's start to recover it can be done. I know that my support subscription to Expess is expired, what is the cost to renew?

Re: Printing Normal and LandScape

Posted: Sun Jan 30, 2011 12:25 pm
by rdonnay
I meant an old DCPRINT.CH, not DCDIALOG.CH.

Re: Printing Normal and LandScape

Posted: Sat Feb 05, 2011 7:12 am
by John Hohensee
My DCPRINT.CH is dated 03/18/2009 is this correct for build 254?