Thnx Glen,

I forgot to mention this is AS2 (an old project). No Flex involved, just Flash Player 8 (& above).

<background>
So, PrintJob offers the ability to spread out a large image over several pages. This works fine.

The trickier part is a printout that requires a header MC and footer MC with each page (this is for a building diagram). By header I mean the header contains title, logo, and other stuff. The footer is a legend with parts and specs.

Initially I tried to do this after PrintJob was fired, so I could know the size of the printout, but the extra frame needed for the new MCs to load caused the PrintJob to fail. As a workaround, prior to calling PrintJob, I calculate and layout pages for the most common formats.

How do I make the pages? There's a couple of extra steps involved, but this is the basic idea: I first add the header and footer to a new page MC. Then I add in a portion of the diagram (via BitmapData) in the middle of the page. This is done for as many pages as needed.

Then when I call PrintJob, I don't need to slice and dice... I just print a stack of page MCs.

</background>


For testing, we're not actually printing out on paper, we're just creating PDF print-previews.


So, regular slice and dice multi-page PDFs in PrintJob works fine. Also, creating a single page PDF with header and footer works fine, however a PD error message does pop up on PCs (but not on Macs).

For a stack of pages (with header): PDFs are fine on my Mac but fail on PC, showing only a single blank page.


I'm not familiar with PDF printing on PCs. It's just built-in for OSX so I assume that's the same for PC.


-radley






On May 1, 2008, at 6:28 AM, Glen Pike wrote:

Hi,

  I have been doing some work with PrintJob in AS2 & Flex recently.

I managed to get it working okay for single pages in AS2 and 2 page spreads in AS3, not sure what you mean by a PDF error, but are you sure it's not your "printer" driver. I have been using "CutePDF Writer" which has been fine on the PC. For Mac, I think it was the Acrobat printer, but not 100% as it was a friends computer.

Can you be more specific about the error - does it occur when printing, or is it when you open the resulting PDF?

I have not done "header" & "footers" yet, but I guess this is just a case of making up your MovieClip / Sprite to include these, so should not have much of a bearing...

  Glen

Radley Marx wrote:



Hey all,

I have a project containing a diagram that needs to be printed. Often the diagram is too large for a single page, so it's sliced/ spread over multiple pages. Further, there's an option that the page may include a header and footer.

The code was all developed and tested on a Mac and works great.

When we print on a PC, we get a PDF error. In most cases the print will still work, but in one specific case (multi-page with header/ footer) it doesn't work at all on PC.

Curious if anyone has seen this issue before...

Thnx!

-radley





------------------------------------------------------------------------------
Radley Marx
www.radleymarx.com
[EMAIL PROTECTED]
------------------------------------------------------------------------------




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to