[Xerte] Certificate
Mark Tomlinson, AC&S Ltd
mark.tomlinson at acns-group.com
Tue Apr 29 12:07:59 BST 2008
NAd for the archives, the solution is:
pj.addPage(pageIcon,{xMin:0,xMax:600,yMin:0,yMax:800},{printAsBitmap:true});
Mark
:-)
_____
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Mark Tomlinson,
AC&S Ltd
Sent: 29 April 2008 11:58
To: 'Xerte discussion list'
Subject: RE: [Xerte] Certificate
Thanks Jules
That is working, except the transparent areas on a png on screen is showing
as black in the printout.
Mark
_____
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tenney Julian
Sent: 29 April 2008 09:11
To: Xerte discussion list
Subject: RE: [Xerte] Certificate
You can easily print the whole stage using rootIcon.printScreen(); Possibly
not what you want to do.
For much finer control, you can print the contents of any icon, probably a
page, that contains the certificate's elements. I gave a page icon the id
'pageIcon', and this works:
pj = new PrintJob();
if (pj.start()){
if (pj.orientation == "portrait") {
// Here, the printArea measurements are appropriate for an 8.5" x 11"
portrait page.
pj.addPage(pageIcon,{xMin:0,xMax:600,yMin:0,yMax:800});
} else {
// orientation is "landscape". Now, the printArea measurements are
appropriate for an 11" x 8.5" landscape page.
pageAdded = my_pj.addPage(pageIcon,{xMin:0,xMax:750,yMin:0,yMax:600});
}
pj.send();
}
You'll need to play around with the values in the parameters, and you need
to read the flash documentation about printjob, because there are a few
other things to bear in mind, but basically, that's it. Put the button the
user clicks to print the certificate somewhere other than the page you're
print otherwise the certificate will have the button on it as well.
Julian
_____
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Mark Tomlinson,
AC&S Ltd
Sent: 29 April 2008 08:48
To: 'Xerte discussion list'
Subject: [Xerte] Certificate
What are my options for having a certificate available in a course that can
be printed?
Any examples available?
Thanks
Mark
Aerospace Consulting & Services Ltd Engineering, Training,
<http://www.acns-gmbh.com/> Consultancy
Mark Tomlinson
Managing Director AC&S LTD
35A Victoria Road East
Thornton-Cleveleys
Lancashire
FY5 5BU
UK
mark.tomlinson at acns-group.com
www.acns-group.com <http://www.acns-group.com/>
tel:
fax:
mobile: +44 1253 855 997
<http://www.plaxo.com/click_to_call?lang=en&src=jj_signature&To=%2B44+1253+8
55+997&Email=mark.tomlinson at acns-group.com>
+44 870 762 6818
+44 789 968 7257
<http://www.plaxo.com/click_to_call?lang=en&src=jj_signature&To=%2B44+789+96
8+7257&Email=mark.tomlinson at acns-group.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080429/a4fef378/attachment.html
More information about the Xerte
mailing list