Unless they've changed things; the optional SetupString is a parameter which is not meant to be edited/manipulated. It is a data stucture representing the user's printer setup choices, so that their desired settings for a document can be persistent accross print operations. You are responsible for load/save of this setup string.
Additionally, SetupString is different for each platform (Windows, MacOS X, etc). In my app, I store the setupstring for each platform sepperately within the document. It's not ideal, settings aren't persistent accross platforms, but its better than not remebering the settings. And I give users the option to clear the setup if they want. As far as your original question... If it makes sense in your app that the output should always be landscape no matter what, then follow what Joe said and test the Width/Height and adjust your output accordingly. Without knowing more about your app, I'd say the simplest thing to do would be to output the result to a buffer and rotate it 90 degrees if the orientation isn't what you want. Of course, that's not exactly the most optimized way to do it performance-wise. For what it's worth, on my 1Ghz G4 (768MB RAM, OSX 10.4.6, RB5.5) it takes 1/6th of a second to rotate a 1024x768 image 90 degrees using the rotation routine in my open source ImagePlay Effects Library ( http://imageplay.sourceforge.net ). Best of luck, ~ Tomis --- Wade Little <[EMAIL PROTECTED]> wrote: > I must have misunderstood this when reading the > OpenPrinterDialog from the language reference. I all > the openprinterdialog in my code and from reading the > LR it says this is an optional Parameter that can be > set...see here: > ---- > Optional. A PrinterSetup object whose properties will > be used (like page orientation, scale, etc.) when > printing. > ---- > > So I thought that from reading this I could set my > page orientation so that when the print dialog opens > it is already set to landscape. > > Did I just misinterpret this?? > > Wade > > > --- [EMAIL PROTECTED] wrote: > > > On May 01, 2006, at 20:27 UTC, Wade Little wrote: > > > > > What do I need to pass here to have my print out > > be in landscape mode??? > > > > I don't think there is anything you can pass there > > to do that. Whether the printout is in landscape or > > portrait mode is up to the user (they select this in > > the printer setup dialog). You can detect which > > they've selected by comparing g.width to g.height, > > for the g returned by OpenPrinterDialog. > > > > HTH, > > - Joe > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
