[Xerte] Certificate
Tenney Julian
Julian.Tenney at nottingham.ac.uk
Tue Apr 29 12:04:08 BST 2008
I found the same thing, and could only workaround it using
non-transparent images. Tried swfs?
________________________________
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,
Consultancy <http://www.acns-gmbh.com/>
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+12
53+855+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+78
9+968+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/3ce02f5b/attachment.html
More information about the Xerte
mailing list