How to Print contents of a Container (Canvas) ?

Here iam having two Two containers (canvas) with my data in it and now I want to print the contents of the canvas as a whole.

Two containers [canvas] à PrintPreviewL,PrintPreviewR
Now I want to print the contents of these containers.

The function which does the print is :

public function doPrint():void
// Create a FlexPrintJob instance.
var printJob:FlexPrintJob = new FlexPrintJob();

// Start the print job.
if(printJob.start()) {
// Create a PrintView control as a child
// of the current view.
var formPrintViewL:PrintPreviewL = new PrintPreviewL ();
var formPrintViewR: PrintPreviewR = new PrintPreviewR();
// Add the SimplePrintview control to the print job.
// For comparison, try setting the
// second parameter to “none”.
// Send the job to the printer.

// Remove the print-specific control to free memory.


This will print the contents of the two canvas in sequence as we send to the printJob.As you can see.

Can go through the classes to learn the Basics and start. All the Best.

Enjoy the code ! :-), leave me comments for queries.


3 Responses to How to Print contents of a Container (Canvas) ?

  1. […] How to Print contents of a Container (Canvas) ? […]

  2. […] #split {}#single {}#splitalign {margin-left: auto; margin-right: auto;}#singlealign {margin-left: auto; margin-right: auto;}.linkboxtext {line-height: 1.4em;}.linkboxcontainer {padding: 7px 7px 7px 7px;background-color:#eeeeee;border-color:#000000;border-width:0px; border-style:solid;}.linkboxdisplay {padding: 7px 7px 7px 7px;}.linkboxdisplay td {text-align: center;}.linkboxdisplay a:link {text-decoration: none;}.linkboxdisplay a:hover {text-decoration: underline;} function opensingledropdown() { document.getElementById('singletablelinks').style.display = ''; document.getElementById('singlemouse').style.display = 'none'; } function closesingledropdown() { document.getElementById('singletablelinks').style.display = 'none'; document.getElementById('singlemouse').style.display = ''; } Flawless Free And Easy Wandering Canvas Print CanvasBring your photos to life with canvas photo printsHow to Print contents of a Container (Canvas) ? […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: