Hi Mike,
Thanks for your input, I also am tring to print a certificate.
Like I posted earlier, I need to print the page landscape.
I've been working on it for hours......
I've done the following:
// The function to print the output.
public function doPrint():void {
var pj:FlexPrintJob = new FlexPrintJob();
if (pj.start() != true )
{
return;
}
var myPrintview:FormPrintView = new
FormPrintView();
myPrintview.width=1100;
myPrintview.height=900;
myPrintview.rotation=90;
this.addChild(myPrintview);
pj.addObject(myPrintview,
FlexPrintJobScaleType.FILL_PAGE);
pj.send();
Where FormPrintView is a Vbox component.
The rotation just doesn't seem to work right. It seems that the
width, height and origin seem to get confused along the way, so the
Scaling gets confused.
I even tried to design the page rotated, but when you rotate a label,
you can't see it anymore :-(
So I am going to resort to Telling the user to select Landscape in
thier printer preferences and check that they have done it.
Joe
--- In [email protected], Mike Weiland <[EMAIL PROTECTED]> wrote:
>
> Unfortunelty there is no way to set the orientation, it is read
only. What I do for http://www.CertificateCreator.com/ is when
someone prints is to tell them to set their printer to landscape.
Once the print job is processed I check the orientation and if it was
not set to landscape I alert them that their printer was not in
landscape mode and for full page printing they need to set their
orientation to landscape.
>
> This has been one of my requests since printing was added to Flash
4.
>
> Good luck,
>
> Mike Weiland
>
> Original Message -----------------------
> Is there anyway to define landscape to the printer?
>
> I am working on a project that I need to print a single page that
is in
> landscape. I've created a component that is 800 x 600, the print
job
> adds that component as an print object and sends. If under the
system
> printer dialog box, I don't choose landscape, it won't print out
> properly. I've tried rotating the object 90 degrees during the
print
> process and no luck.
>
> Any suggestions?
>
> thanks
>