Changing from portrait to landscape and back in printing loop (REALbasic network user group Mailinglist archive)
Back to the thread list
Previous thread: Right to Left advice
Next thread: Re: Application hangs periodically unless stepped through with the debugger
| Changing from portrait to landscape and back in printing loop |
| Date: 02.03.10 02:24 (Mon, 1 Mar 2010 17:24:32 -0800) |
| From: |
|
I am trying to create a form in RB and using graphics.drawstring etc., and send it to the printer. I am creating 8 pages which need to be collated when printed.
Is there a language protocol to change from portrait in printing one page, to landscape when printing another page, and then back to portrait when the next page is printed? I want to do his using the p.pagesetup or Landscapemrue or whatever without having the modal dialog come up for each change. I want to just change it between pages. Is this possible? Thanks, George Wood _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: Changing from portrait to landscape and back in printing loop |
| Date: 02.03.10 15:04 (Tue, 2 Mar 2010 09:04:31 -0500) |
| From: Peter E. Barck |
|
On Mar 1, 2010, at 8:24 PM, <<email address removed>> <<email address removed>> wrote: > I am trying to create a form in RB and using graphics.drawstring etc., and send it to the printer. I am creating 8 pages which need to be collated when printed. > Is there a language protocol to change from portrait in printing one page, to landscape when printing another page, and then back to portrait when the next page is printed? > I want to do his using the p.pagesetup or Landscapesrue or whatever without having the modal dialog come up for each change. I want to just change it between pages. Is this possible? > Thanks, > George Wood What I have done is the following: Dim pS As PrinterSetup Dim pSetting As String pS ew PrinterSetup pS.Landscape prue If pS.PageSetupDialog(myWindow) Then pSetting dS.SetupString Else Return End If if ps.PageHeight > ps.PageWidth Then MsgBox "Please select Landscape Orientation and try again" Return end if : : With other words: Create a new PrinterSetup, set its Landscape property to TRUE, and call the printer setup dialog. There you should see the Landscape mode already set. After the user accepts the dialog check that the width is greater than the height. Peter MacBook Pro, Core 2 Duo 2.6GHz, 4GB RAM, OSX 10.6.2 RST2010r1 Enterprise and REAL Server 2009r1 _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| Re: Changing from portrait to landscape and back in printing loop |
| Date: 02.03.10 03:11 (Tue, 02 Mar 2010 03:11:39 +0100) |
| From: Someone |
|
Le 2 mars 10 à 2:24, <email address removed> a écrit:
> I am trying to create a form in RB and using graphics.drawstring > etc., and send it to the printer. I am creating 8 pages which need > to be collated when printed. > Is there a language protocol to change from portrait in printing > one page, to landscape when printing another page, and then back to > portrait when the next page is printed? > I want to do his using the p.pagesetup or Landscape= True or > whatever without having the modal dialog come up for each change. I > want to just change it between pages. Is this possible? Another approach would be to rotate the picture by 90°. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
Links
MBS Realbasic Chart Plugins - Bilder aus Nickenich