Setting Printer Options Through ObjectPal 
Author Message
 Setting Printer Options Through ObjectPal

I have made a form with a button. I want my users to just press the
button & that will:

1) Run a Query (and it does)
2) Set the Printer to Landscape mode (Not a chance!)
3) Print the report based on the Query (yep!)
4) Set a flag to True (Yep and Yep again!)

At this point I would settle for anything approching a reasonable
solution to Step #2
Here are some of the things I have tried to no avail:

A) menuAction(menuFilePrinterSetup) This wouldn't actually change the
printerSetup, but it does call the setup dialog box.
However, choosing Landscape does not change the orientation. The Report
still prints Portrait.

B) The solution I am really aiming at that I feel would make this a much
more user-friendly form. I will post the code following
this brief comment. I don't really understand when to use the term
"Landscape" vs "prnLandscape" or "Orient" vs "Orientation"
That may be where this code is messing up. It all works with no error
messages at all, but it still prints in Portrait.

Please help me!
Sincerely, Cathy Hendricks

Here it is:

if not executeQBE(depositQ) then
 msgStop("Table Generation Error","Could not Execute Query to produce
Report. Call your System's Administrator!")
 If printerSetOptions(prnOptions) then"depstslp",WinStyleMaximize)
  If"Thsyrdst.db") then
   while not depositTC.eot()
    message("All Deposits have been Reported: True!")
    depositTC."Slip Printed" = PrintDeposit

   message("All entries have been reported on Deposit Slips")
   msgStop("Error opening Thirsty Data","Call your System
  msgStop("Printing Error:","Printer Options not set correctly, Call
Your System Administrator")

Again, Thanks for your help!

Fri, 26 May 2000 03:00:00 GMT
 Setting Printer Options Through ObjectPal


Try this:
   pmmenu1 popupmenu
   whichreport string
   arPrinters Array[] string
   rpi  PrinterOptionInfo

;Make a popup menu asking how they want it printed
   pmmenu1.addstatictext("I will print the confirms sorted by...")
   whichreport =

;Get a list of the available printers to print to and make it a popup
   pmMenu.addStaticText("Where do I Print them...?")

   strChoice =
   if strChoice <> "" then

;set to landscape
   rpi.Orientation = prnLandscape

         case whichreport="Currency" : r.print("Confirms by Currency")
         case whichreport="Security" : r.print("Confirms by Security")
         case whichreport="Account" : r.print("Confirms by Account")

;Empty the array, in case you hit it again

Good Luck

Mon, 29 May 2000 03:00:00 GMT
 Setting Printer Options Through ObjectPal

On Mon, 08 Dec 1997 16:19:01 -0600, Cathy Hendricks


>I have made a form with a button. I want my users to just press the
>button & that will:

>1) Run a Query (and it does)
>2) Set the Printer to Landscape mode (Not a chance!)

See my reply to Mark Puchalski, "Pdox 5.0/Reports"  The code works for
Pdox7 as well.  Changing orientation has been a trick, but it's not
too bad, really.


Tue, 30 May 2000 03:00:00 GMT
 [ 3 post ] 

 Relevant Pages 

1. ObjectPAL printer options?

2. ObjectPal Printer options

3. Setting Printer Options etc.

4. Setting Printer Options

5. Setting printer options in a script

6. Q: how to change printer settings/options

7. How do you set printer to a network printer

8. FPW2.6 printing to network printer w/SET DEVICE TO PRINTER

9. set printer to \\machine name\printer

10. ObjectPal printer control

11. How to select printer in Objectpal

12. Selecting Printer and Tray in ObjectPAL

Powered by phpBB® Forum Software