Flex Print Job not working with custom component

Hi All,
I have to print pages with header, body and footer. So the thought process was to create a custom component fro header, footer and body. Header component is based on Box, Body is a renderer (which will have fix value of items - and will decide the number of possible pages) and footer is again based on Box.
But when i created a simple Custom component like this for header
<?xml version="1.0" encoding="utf-8"?>
  <mx:VBox  xmlns:fx=http://ns.adobe.com/mxml/2009
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:HBox>      <mx:Label id="testLabel" text="Test Container"/>
</mx:HBox> 
</mx:VBox>
Then when i try to add this to FlexPrintJob, and save it as 'xps' to see the print output, i get error message that this file is in use or damaged.
    var myPrintJob:FlexPrintJob = new FlexPrintJob();
  if(!myPrintJob.start()){
      return;
var header:Header = new Header();
header.width = myPrintJob.pageWidth;
header.visible = false;
FlexGlobals.topLevelApplication.addChild(panierPrintHeader);
myPrintJob.addObject(header);
myPrintJob.send();
FlexGlobals.topLevelApplication.removeChild(panierPrintHeader);
 But this does not work and i get the above mentioned exception. Now when i not use the custom component and just have a label or HBox or anything on stage before the print functionality is invoked, it works fine. And this too haapens only if you have a mxml component, i tried by creating a new Label component using actionscript and then provide the same to the printJob, which did not work either. I need help on this, else i will have to take print functionality to server side(Java) which has some business implications, the reason why i am spending time on flex for printing. 
Thanks and Regards,
Jigar
Looks like custom component print is not working fine with flex or i am doing something terribly wrong.
Looking forward for help.

Is there nobody in flex community who can help on this....
Looks like a toothless class that adobe actionscript team has provided, which is not liked across much

Similar Messages

  • My HP photo smart  C6280 printer does not work with CS6.  Any Help?

    My HP photo smart  C6280 printer does not work with CS6.  Any Help?

    How does it "not work"?
    What OS version are you using?

  • Print button not working with Xerox pluggins installed

    Thanks to the wonderful people here I found that if you have any Xerox plugins in /Library/Printers/PPD Plugins you can experience the print button not working.
    Removing them fixes it which is nice but I need the plugins, anyone know a work arround?

    I've seen this happen with some of our Xerox PPD's on PC's. The cause in this case, is their reference to virtual memory with older OS systems.
    I instead used an older PPD or a PPD I had edited to support 200"x200" custom pages sizes, supporting full color.
    All I needed was a clean postscript file.
    The Adobe 7 PPD writes clean PS.
    If you need some kind of VIPP instructions in your PPD for the Xerox, I'd look at getting a newer PPD form Xerox made for OSX.

  • Discoverer Viewer/Plus does not work with Custom EUL owned by APPS user

    I am facing a unique issue with one of my customers. They have a custom EUL named XX_EUL_US and this does not allow connecting through discoverer viewer or discoverer plus.
    I have worked with custom EULS before at other customers and this was never the case. I am being told that this issue is happening as the EUL owner is APPS instead of some other user. Is this the case? Can discoverer viewer not be used with EULs owned by apps user?
    Please not that the Default EUL in ICX profiles is set to this EUL and no other EUL profiles are set.
    Appreciate any thoughts on this.

    Hi,
    I am not sure what you mean when you say you have a "custom EUL named XX_EUL_US". The EUL table should be created in a schema named XX_EUL_US. This will then be the EUL owner. You will then need to connect to Discoverer Administrator as the EUL owner and grant privileges to Apps users and/or responsibilities.
    The user should then be able to connect to Discoverer Plus/View using their apps username, responsibility and password.
    To be able to connect directly from an apps menu you need to have the ICX parameters set correctly. The ICX: Discoverer Default End User Layer Schema Prefix should be set to XX_EUL (without the _US). The ICX: Discoverer End User Layer Language Override should be set to US or not set at all.
    Rod West

  • BT848 TV not working with custom 2.6.22 kernel

    Hi,
    I installed a custom compiled 2.6.22 kernel (built the traditional way, using menuconfig in /usr/src/linux-2.6.22) but then tvtime could not work with my BT848 TV card (error message - "not a video4linux device" and "cannot open capture device /dev/video". The device is there and a simple video app. I wrote myself says:
    cyclops: Opened V4L2 device: /dev/v4l/video0
    cyclops: VIDIOC_QUERYCAP: error 25, Inappropriate ioctl for device
    The TV worked with kernel 2.6.21, although to listen to radio with gqradio I had to start tvtime first to get any sound. I double checked my config but can't see anything missing, I have compiled custom kernels many times and so I could say I am not inexperienced. I am using latest Arch x86-64 on an AMD Athlon 64 machine.
    Has anyone else experienced this problem?
    My thanks in advance!

    Hi,
    I installed a custom compiled 2.6.22 kernel (built the traditional way, using menuconfig in /usr/src/linux-2.6.22) but then tvtime could not work with my BT848 TV card (error message - "not a video4linux device" and "cannot open capture device /dev/video". The device is there and a simple video app. I wrote myself says:
    cyclops: Opened V4L2 device: /dev/v4l/video0
    cyclops: VIDIOC_QUERYCAP: error 25, Inappropriate ioctl for device
    The TV worked with kernel 2.6.21, although to listen to radio with gqradio I had to start tvtime first to get any sound. I double checked my config but can't see anything missing, I have compiled custom kernels many times and so I could say I am not inexperienced. I am using latest Arch x86-64 on an AMD Athlon 64 machine.
    Has anyone else experienced this problem?
    My thanks in advance!

  • My printer does not work with mountain lion

    I recently upgraded to Mountain Lion and now my HP Officejet Pro 8600 printer does not work.  I downloaded the required driver from the App Store but am still not able to connect.  Is there actually a solution for this or do I need to find a way to downgrade my OS to one that is compatible with my printer?

    From the HP site:
    Compatible operating systems
    Microsoft® Windows® 7, Windows Vista®, Windows® XP (SP3)* or higher (32-bit only): *Supports 32-bit only; Mac OS X v 10.5, v 10.6 or v 10.7; Linux (For more information, see http://hplipopensource.com/hplip-web/index.html)
    But then also on the HP site they have drivers for the printer for 10.8. See here http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4142&lc=en&cc=us&dlc=en&s w_lang=&product=4323659#N194
    I would try the driver from HP.

  • My printer does not work with firefox but does work with explorer

    While using ebay I tried to print out a mailing label, and fox fire does not work with it anymore. My printer does work with internet explorer ?

    What printer? Does the page appear correctly in Print Preview? What happens when you try to print?

  • My canon printer does not work with firefox12

    my canon printer does not work firefox 12 edition

    Try to reset the print prefs.
    See:
    *http://kb.mozillazine.org/Problems_printing_web_pages
    *https://support.mozilla.org/kb/Printing+a+web+page
    There are other things that need your attention.
    Please Update to the latest Firefox 17.0.x version.<br />
    The Firefox Firefox 12.0 version that you currently run is no longer supported with security updates
    *Help > About Firefox
    *https://support.mozilla.org/kb/update-firefox-latest-version

  • Printer Drivers Not Working with Leopard

    I downloaded the Oki C5150n driver for Intel Macs and they don't work properly with Leopard. I need to use the bypass feed, but the drop down menu to choose the paper source only drops partway down not allowing any choices.
    This is only happening with CS and CS3. The printer works fine with MS Office.
    I have the Oki driver on my Macbook Pro and it works fine, but I'm running Tiger on the Macbook Pro.
    Any Help would be appreciated.
    Thank you,
    Homer
    [email protected]

    Same issues here...same setup. This has been an intermittent issue for some time now. My latest incident was when power was lost during one of the big snow storms. Print jobs hang when going trough Time Capsule (wired or wireless) but are fine if plugged into computers USB port. I have resolved this issue before by following similar steps outlined above, but the solution seem to be hit or miss.

  • Printer does not work with Windows 7

    I need help for printing with my HP Deskjet IA 3545 eAiO printer.
    I cannot print with my laptop running on Windows 7. I have tried uninstalling and re-installing countless times over the past 3 days using the accompanying CD as well as trying to get the latest driver updates from the internet but all failed to print. I have also tried using Wireless Direct but that did not work as well. The printer printed the  internal page when I ran the HP Printing and Scanning Doctor tool.
    I have no such printing issue with thsi printer model while using my desktop and other laptop running on Windows 8.1. This Windows 7 laptop prints smoothly however when I switch to my Brother DCP-J315W and Canon LBP7100Cn printers.
    Windows Updates lets me know there is one important update for the driver for this printer but for some mysterious reason the Windows 7 laptop just will not accept the down-loading and installation operations for this particular update.
    Please assist me.

    Hi there @YuLen , 
    Welcome to the HP Forums
    I read your post about how your Deskjet Ink Advantage 3545 is not completely functioning on your own computer running Windows 7 however, another computer functions fine with the printer, and the printer will also print out test pages successfully. This seems to sound like an operating system issue so far, and I have some ideas in mind for you to try out that might help.
    1. Run the Microsoft Fix It Tool to uninstall the printer.
    2. Restart your computer.
    3. Perform a Clean Boot.
    4. Restart the PC again.
    5. Run Windows Updates: Use your Start menu to check for updates
    6. Download and run the full installation here: HP Deskjet Ink Advantage 3540 e-All-in-One Printer series Full Feature Software and Drivers
    7. Try printing now!
    If there is still an issue with performing the Windows Updates, contact Microsoft: Microsoft Support Forums
    Good luck!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • HP 8150N Printer still not working with Snow Leopard

    I went to the Hewlett Packard page for a new driver and was told the new driver for my printer was included in the Snow Leopard update. I'm sure it is, but my computer can't find the printer. I've used advice from other discussions and tried what I could with the "Print & Fax" feature on my computer, but so far, nothing works. The printer to a network with two other computers in my office. Any suggestions would be helpful. Thanks in advance.

    I believe this to be a "generic" statement since the support agent did not know what your problem was. I have double checked, and there are no known issues with the driver for the 8150n (at least none that engineering has been informed of and is working on).
    I fully believe the problem you are experiencing is due to the lack of AppleTalk in Snow Leopard.
    First print out the IP address of your printer by printing the configuration page. You may also be able to get this information on the front panel if you dig.
    Second, open up the print and fax control panel and click the + button to add a printer. In the add printer window that opens, select the IP button at the top, choose the protocol of HP JetDirect - Socket, and then type the IP address of the printer. If the OS automatically selects the right printer driver (and not Generic PostScript) you are good to go. Click Add Printer and happy printing.
    If it doesn't auto select the right printer then your printer probably does not have an IP address that is routable from the Mac. The easiest way to get the printer to grab a new IP address is to cold reset it. Cold Reset the printer by powering it down and then powering it back up while holding down the GO button.
    This should force the printer to grab a new IP address. Follow the above steps again to add the printer, and away you'll go.
    One drawback of this method is if you have a network that keeps changing and a DHCP server that doesn't reserve IP addresses for devices it is possible that the printer at some point in the future updates its IP address and is no longer reachable. If this happens, simply repeat the steps and you'll be all set. The other alternative is to assign a static IP address to your printer, but that takes a bit more work.
    Just trying to help.
    Andrew

  • Epson Printer will not work with Pagemaker 6.5

    I am having a problem with my Mac I run Jaguar 1.3X on it with OS9 which pagemaker runs under.
    I can print with every application and print information from the internet, but can not print my PageMaker files. Is there a fix out there for this or do I have to upgrade to a newer OS?
    I get an error like this everytime I try to print using Pagemaker 6.5
    *"Cannot access current printer"*
    *"Cannot access printer"*
    8513:5221

    Some programs do not work as well under Classic as they do under native OS9 and you may be encountering this. Pagemaker may be having a hard time talking to the OSX generation of printer drivers. You can check [Gutenprint drivers|http://gimp-print.sourceforge.net/MacOSX.php] for an alternate set of drivers, but I don't know much about them or Jaguar OS... I would not be over optimistic about getting a newer version of OSX to assist. What version of OS9 are you using for Classic? You could try changing that, especially if there is a newer version.

  • Printer does not work with maverick

    canon mf 6595 no longer works with Marverick

    Jacques Levesque wrote:
    I went to the Canon Site and download the good driver. I delete it, install again but nothing work!
    The new UFR2 has two requirements.
    1. You must use the "Line Printer Daemon-LPD" protocol. This driver does not support IPP, which is set as the default.
    2. When you add the ADV6065 and ADV8085, you must select the entry that shows "Canon iR-ADV 6055/6065" and "Canon iR-ADV 8085/8095". Do not select the entry that shows UFR II in the name. This is the PPD for the older UFR v2.43 driver which does not work on 10.9.

  • Look Up function is not working with custom dictionary - How can I solve this?

    Hi everyone,
    I recently installed a Chinese-English dictionary known as 小词典 or Xiao CiDian using the .mpkg file that I downloaded from the website (here's a link: http://xiaocidian.com/). The dictionary package was added to the native Dictionary application on my Mac. When I go to the Dictionary application and search for Chinese words, there are no problems – results just come up as they should. The website claims that the Look Up function should work with this dictionary as well, and that I should be able to look up the definitions of any Chinese words that I come across (which makes sense, seeing as it's integrated into the native Dictionary application). The problem? It's not happening. I've tried all the ways that I have found to get to the Look Up pop-up dialog box – Ctrl-Cmd-D, right-click and the Lion three-finger double-tap gesture – but all that ever happens is that the dialog box comes up, saying "No results found". Does anyone know why this is happening? Should I try reinstalling the dictionary? Thanks in advance to anyone who can give some advice.

    If you don't get an answer here, you might want to search/ask in the Chinese Mac list:
    http://groups.google.com/group/chinesemac

  • Print job not working on Mac-Intel.

    We're having trouble getting a text field to print on the
    Mac-Intel machines. It prints fine from Windows machines and
    Mac-PowerPC. Any ideas? We just get a black box printed out on
    Mac-Intel but things work fine on the PCs.

    Jao, I tried it but no luck. As John recommended, I also uninstalled Lightroom, deleted the preference file as well as the print templates per your suggestion and reinstalled the latest Lightroom 1.3.1. Still no luck with using the left panel in the Library module.
    One thing I just noticed was that if I open a very small catalog of ~200 images, everything appears to work fine. It looks like a problem with working with my 12,000 image catalog which always worked well before I upgraded my iMac to OS X Leopard. By the way, I've got the preferences setup to always check the integrity of the catalog at the start of every session. Everything is supposedly good.
    Anyhow, thoughts and recommendations would be greatly appreciated. I hate the thought of reimporting all my images and losing all my metadata in the process. Thanks.

Maybe you are looking for

  • Reading a XML file in ORACLE 8i

    I hv a XML file something like this.... <?xml version="1.0" ?> - <ROWSET> - <ROW num="1"> <COD001_VEK4>2</COD001_VEK4> <NUM040_VEKT>2</NUM040_VEKT> <COD467_VEKT>2</COD467_VEKT> <COD459_LVIO>5</COD459_LVIO> <NUM258_INDI>InfoSys</NUM258_INDI> - <RELATI

  • Problem with index.html.  Help!

    I am having a problem with the index.html. In iWeb my site looks perfect. When I publish it to a folder and then open the index certain media is missing but just on one page. I have tried deleting the published site from the folder and re-publishing

  • Migration from BO Edge to BO enterprise

    Hello Everyone, Is there any possibility of migration from BO Edge Series to BO enterprise solution? Will appreciate If you could please help me with some document / details on 1. Quick difference between Edge and Enterprise Series 2. Migration path

  • How do I get the correct artwork to show and download all songs?

    Hi, Yesturday I ended up buying new music on iTunes on my PC. I wasn't able to download the music to my iPhone 5 unless I updated to the newest version, which I did. Then not all songs would download to my phone and once I looked closely, I noticed t

  • Website not asking permission for using location services in Safari iOS 6

    Website is not asking permission for using location services when using Safari mobile  on iOS 6.0 (iPhone 4s) Steps to replicate: 1. Go to http://maps.google.com using Safari 2. Choose "allow" to use location services 3. Close Safari and wait 1-2 min