Printing Normal and LandScape

This forum is for eXpress++ general support.
Message
Author
John Hohensee

Printing Normal and LandScape

#1 Post 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

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Printing Normal and LandScape

#2 Post 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
The eXpress train is coming - and it has more cars.

John Hohensee

Re: Printing Normal and LandScape

#3 Post 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

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Printing Normal and LandScape

#4 Post by rdonnay »

This should work.

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

Give it a try.
The eXpress train is coming - and it has more cars.

John Hohensee

Re: Printing Normal and LandScape

#5 Post 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#

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Printing Normal and LandScape

#6 Post by rdonnay »

This doesn't make sense.

Possibly, there is a very old DCDIALOG.CH that it is finding.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: Printing Normal and LandScape

#7 Post 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.
greetings by OHR
Jimmy

John Hohensee

Re: Printing Normal and LandScape

#8 Post 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?

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Printing Normal and LandScape

#9 Post by rdonnay »

I meant an old DCPRINT.CH, not DCDIALOG.CH.
The eXpress train is coming - and it has more cars.

John Hohensee

Re: Printing Normal and LandScape

#10 Post by John Hohensee »

My DCPRINT.CH is dated 03/18/2009 is this correct for build 254?

Post Reply