Printing from a application report component

Hello friends,
Anyone knows how could i make a portlet for allowing the user to print its content ?
I would like a user to be able to print a report which is rendered using a report component.
Thanks in advance.

Separating out logical code from display code is nothing to be ashamed of, but there are better ways of doing it... Remember, you are in an OOP environment, so you can organise things to share functionality across a wide range of things without getting tied up in global function hell.
For example, I could do this:
[code]
package com.whatever
  import spark.components.Group;
[Event(name="customEvent",type="flash.events.Event")]
public class PGroupBase extends Group
[/code]
I can then add custom properties to that class, or create subclasses of that class, or quite a lot of other things. I can implement interfaces and I can use static properties to provide global links between every instance and so on and so forth.
And, from a design perspective, in my display code, I still end up with the very simple and familiar:
[code]
<whatever:PGroupBase width="100%" height="100%"
    customEvent="doSomethingOnACustomEvent(event)"
    />
[/code]
That doesn't stop you from separating out purely abstract code into purely abstract classes - for example, I have a singleton pattern OrientationManager class that provides me with full control over stage rotation etc for anything that cares to use it in just a couple of lines - but it does mean that you can leverage the full might of Flex IVisualElement and IUIComponent power without tieing yourself up in knots.
G

Similar Messages

  • Cannot print from ANY application after upgrade to 10.4.8 !!!

    Hi all,
    as it is written in the subject.
    Up to yesterday, I had OS 10.3.9, everything ok, could print from any application.
    Then I moved to Tiger and to the last version (10.4.8).
    And today the "nice" surprise: either from Preview, Texshop, Word, any web browser... I cannot print anymore!! As soon as I go to file/print, the application crashes, any suggestions??
    Thanks a lot

    Hmmm. It sounds like a possible problem with the system prior to updating. If you've done this already don't be upset by the suggestion. I'm just trying to cover the bases.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Installer menu (Utilities menu for Tiger.) After DU loads select your OS X volume from the list on the left, click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now shutdown the computer for a couple of minutes and then restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior (3.0.3 for Tiger) and/or TechTool Pro (4.5.1 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X. Note that Disk Warrior will not work on Intel Macs.
    Download the standalone 10.4.8 Combo Updater (be sure to get the correct version - Intel or PPC - for your Macs. Reinstall the update using the Combo Updater.
    As an added precaution I would recommend you first boot into safe mode before doing the above.
    There is a shareware utility called Printer Setup Repair (www.macupdate.com) that you can also try. It is sometimes very useful for fixing problems with the printing system.

  • Printer doesnt appear in the print options window when printing from an application like word etc

    Ok  this topic is all over the help forums but I have a couple of different observations not previously covered and all remedies that have been posted and worked for most havent worked for me
    First of all the Printer used to work with USB or NET connection and then suddenly unexpectedly stopped working. I cant say with 100% conviction whether this was when the upgrade to windows 7 occured or not
    things I have tried:-
    I have used the hp install wizard
    I have a downloaded the windows 7 update. 
    I can ping the device
    I can print a test page.
    The icon appears in the device and printer window but with an exclamation mark.
    I have tried NET STOP SPOOLER / NET START SPOOLER.
    I can scan docuemnts OK
    here is the part that I believe appears to be different from the other case on the forum.
    If I open a word document and select print the printer preferences dialogue window opens but no printer is visible to select. When I select add printer it shows my network then double clicking this opens a window showing a printer icon but its a previous version?? so when I select it as a printer to add nothing happens and it still doesnt appear as a selectable printer in the printer preferences pop up window. So doesnt print any thing
    Im lost for any other ideas to try

    I had already tried this and it didnt work on your advice I repeated the process with same results it appears in devices list but with an exclamation mark but trouble shooter fails to find any problem
     I refer you to the things tried and status in my first post i.e. I can ping the IP, I can scan. So my thoughts are now it must be something on my PC side that is the issue and not the printer or printer software.
    Could it be a security level issue that's the reason why  manual selection of add printer comes back access denied ??. Possibly  I need admin login. However I am the admin and single user of my PC anyway so I should have access.
    or some other PC setting why it doesnt see the printer in the printer settings when printing from an application ?

  • I can't print CS5 files from my Mac OSX (Mavericks). Can print from other applications. Help please?

    I can't print CS5 files from my Mac OSX (Mavericks). CS5 crashes when sent to print.  Can print from other applications (Word, etc.).

    I just tried installing them. I got the message that "Some updates failed to install" (including for CS5), to quit and try again. I was curious and tried again to print and lo and behold, I could print!  I'm still nervous that not everything installed and wonder how to get a complete install.

  • Printing From WLS Application

    Not sure where to post this, but we are building an application, replacing a
    mainframe based system. We have a large requirment for printed output,
    around 30,000 printed reports per day.
    Some of the printers are network attached, some are connected via ISDN or
    Dial-Up and some will be browser users across the web.
    Currently printing is handled by the mainframe terminal emulation software.
    Does anyone have any experience of printing large amounts of reports from a
    WLS application? I'm looking at a 3rd party solution from a company called
    lbmsys.com, which is a print repository, with a number of different clients
    and management tools available.
    I wondered what other people do. Some people I've asked say they use a
    mainframe to do it, which is a bit unfortunate as it's going!!
    Pete

    crReportDocument.PrintOptions.PrinterName should do the trick.
    For RAS code see kbase [ 1386475 - How to set printer name and print job title at runtime using Report Application Server SDK for Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do].
    For CR code, see the article [Crystal Reports for Visual Studio .NET - Export and Print a Crystal Report|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/f0bec146-a51d-2b10-e986-da68220eaa91?quicklink=index&overridelayout=true].
    Also see [Crystal Reports for Visual Studio 2005 Walkthroughs|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23] for more code example.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • CUPS Error message when printing from some applications

    Hi. I've got an issue when printing from some apps, but not others. Up to a few months ago everything was fine, then it started when Word would not print direct to my printer (Epson Stylus Pro 3880), not a big deal as I don't use it a lot and could print it through Safari if needed. Then more worryingly as a designer I found that PDFs stopped printing direct too, again I can print through Safari and Preview. Last night I installed a firmware update and now InDesign (CS4) is refusing to print!! Not great as printing via Safari/Preview doesn't give me the same level of control over my prints. Just checked both Illustrator and Photoshop and they both print okay. I get the same error code each time "error: /usr/libexec/cups/filter/pstoraster failed" Does anyone know what could be causing this?
    Thanks in anticipation. D

    cytan,
    As Matt pointed, an application printing to CUPS controls only the format of the input.  It has no direct control over the chain of filters inside the printing pipeline.  Acrobat isn't coded to use pstoraster, it is simpling submitting postscript to the print queue.  In an un-molested Apple supplied CUPS setup, that works fine.
    What is going on is that the CUPS system configuration got mangled by some third party bits.  In the Unix tradition, the configuration is fairly transparent, in the form of plain text files.  In particular, in /usr/share/cups/mime you will find out exactly how the filter pipeline is configured via a table of what filter to use to convert data between two mime types.  So we can inspect how the filters are setup and how a broken pstoraster is getting into the chain.
    I don't have a handy "before mangling" state, but I can clearly see the Apple specified filters to be invoked when the input data is application/postscript (in apple.convs).  I can also see a conflicting filter definition referencing the broken pstopdf (in mime.convs) but with a higher precedence, overriding the apple specified filter.  This is why, in reference to your points #1 and #2, simply removing pstoraster fails, because the filter configuration is what needs fixing.
    On my system, I found the pstoraster filter to be a shell script referencing a MacPorts install of ghostscript. I've since removed MacPorts, but that evidentally left the CUPS configuration in this broken state.  Without knowing exactly how the CUPS system was put into the broken state, fixing it can be a bit tricky.  Another posting suggested replacing the broken pstoraster with the Apple supplied equivalent of pstocupsraster.  That might work, but it would be better to simply remove the conflicting filter specification, which on my system is this bit in /usr/share/cups/mime/mime.convs:
    # pstoraster is part of GPL Ghostscript...
    application/vnd.cups-postscript        application/vnd.cups-raster     100     pstoraster
    Removing that will restore the Apple specified filter chain for postscript input.  With the filter specification gone, you are free to remove the pstoraster filter itself.
    On wating for Adobe to fix this...
    Acrobat provides enough things to scream about without pinning non-Acrobat problems on it as well.  Not only is this problem not the fault of Acrobat, but suggesting that Acrobat should reach into a CUPS system broken by some unknown third party and fix it is only going to complicate the situation by having two third party products trying to un-do each other's configuration of a system resource.   Do you really trust Adobe to fiddle with system components it doesn't own?  No, I didn't think so.  Adobe installers and updaters have enough trouble with the stuff they do own.
    So, why does this problem only seem to affect Acrobat (your point #3)?  I suspect it is simply that Acrobat is in the minority of submitting Postscript to the print queue.  Any print job produced via CoreGraphics APIs is going to enter the system via a different path (namely, PDF), but the Postscript method is completely legitimate and any application that submits Postscript will be affected in the same way as Acrobat.
    I hope this sheds some useful light on what is really going on with this problem.
    -john

  • Laserjet not printing from some applications

    Dear all,
    I am having some trouble with my HP Laserjet P1005. I am finding that it just refuses to print anything from either Adobe Reader or Safari but has not problems printing from Word or Firefox. There are no error message, the document goes to the queue and is just 'stopped' for no reason. Pressing resume obviously has no impact. I have d/l-ed the most recent drivers from HP to no avail.
    Any help would be much appreciated,
    Akshay

    Can you print to PDF from these applications?

  • Help in printing from flex application

    Hi Guys,
    I am working from last few days with the printing via flex application, i face some issues while printing if any have suggestion or help it would be great..
    1. Print which i got is not clear, like fonts are little fuzz or blur like.
    2. Is printing via flex application is like the same as we print from MS WORD ?.
    3. Choosing Flex for printing purpose like labels or A4 paper is right choice or not ?
    Please comment!!
    Thanks in advance,
    Himanshu

    I went first to the Apple Store and tried an App and did not work had to inter the IP which I know  is correct. What I was looking for is someone that is using the 7210 with the Iphone and what App they are using. I may have something else going on.
    Thank you for the response.
    Dee

  • MX 922 - "no paper" (but full) when printing from SOME applications

    I CAN print from my ipad "notes" application. I CANNOT print from a web page or my photos. The MX 922 says it is out of paper - BUT IT ISN'T. I don't get this error when printing from my ipad "notes" ap. I am frustrated and about to take it back to Costco.

    Hi djh,
    Please place paper in the upper cassette, making sure that the small size photo paper such as 4" x 6" (10 x 15 cm) or 5" x 7" (13 x 18 cm), or Hagaki are loaded.
    Please note that if you cut plain paper into small size such as 4" x 6" (10 x 15 cm) or 5" x 7" (13 x 18 cm) and try to print on it, the paper jam will occur.
    Once the paper is in place, align the paper guides with the both edges of the paper and the press the OK button.
    Please attempt to print.
    If you continue to have difficulties, please contact our support group using the following link:
    http://www.usa.canon.com/cusa/consumer/standard_display/contact_us_consumer
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • HT4356 I can print from other applications on my iPad but not from Dropbox

    I can print from my iPad using other applications but not Dropbox

    Is your printer one of the models listed here: http://support.apple.com/kb/HT4356

  • Choosing print from any applications forces application to quit

    Just tonight, when I choose to print from any applicaiton [mail, Safari, etc...] it forces that application to quit and ofcourse nothing is printed.
    Additional info: I was running Disk Utility and erasing the empty space on my HD, but since it was taking so long, I browsed the web, emailed, and did other things while it worked in the background - probably a bad decision by me since in the end when I told Disk Utility to "skip" erasing empty space it wouldn't skip and hung and I eventually did force quit Disk Utility.
    More additional info: I think this is definitely a printing problem, and just maybe if I can get into the print que I can cancel the jobs that are in there - how do I get to the que.
    Even more additional info: I'm using Tiger and a HP Deskjet 3940 printer. I have shutdown, unplugged the printers usb cord, and turned the printer on and off before restart.

    Thanks for your help.
    See http://discussions.apple.com/thread.jspa?threadID=372982&tstart=0

  • Printing from an application

    Hi, I'm a Windows developer who has to make the port of our application to MAC OS X, the application must support printing but we don't want to print what's on the window. In the MS Windows application we use some script files to grab the text and the format to print it, but after reading all this:
    http://developer.apple.com/documentation/Carbon/Conceptual/CPMConcepts/cpm_chap1/chapter_1_section1.html
    I cannot find an equivalent way in MAC, since all the sample source code I've found makes me think that it prints the displayed content in the application window, which we don't need. We don't need to show the user any dialog too.
    Can someone provide me a link or doc or whatever information which can help me in my task?
    BTW, I've read somewhere that PDF is somehow native to MAC OS X when it comes to printing, if there is an easy way to just sent a PDF file to the printer queue without having to open it it, would be great!, I can generate the PDF files from my Windows app and use those in the MAC version.
    Thanks a lot in advance.

    jorgeche wrote:
    If I must past on Carbon which API I'm I supposed to use?
    Cocoa
    About your pseudocode:
    · is that AppleScript? our application is C++, if so, I suppose there must be a library or something which allows me to use it from a C++ app.
    That isn't pseudocode, that is Objective-C code from my application.
    Many people doing a "porting job" are reluctant to use Cocoa because they think they have to re-write everything. You don't. You can write a simple application shell using Cocoa and use that do to all the primary MacOS X interfacing (opening files, saving, printing, etc.) You can and should keep all your code in C++.
    Technically, yes, you can do it all in Carbon if you want. All you need is six months of effort and a couple of experienced Carbon programmers. You can get the Cocoa wrapper on your C++ app up and running in about 6 days with no help.
    · if I understand it, does it means that I can just open my PDF file, extract its data, and pass it to the print view?.
    Maybe. I didn't really need PDF support so I didn't bother. The NSPasteboard handles PDF data and there is the PDFKit, but I know nothing about that.
    Here is the top half of my print method:
    // Print the tasks.
    - (void) print
    // Get the RTFD data from the task list.
    NSPasteboard * pboard = [NSPasteboard pasteboardWithUniqueName];
    // Declare my RTFD type.
    [pboard declareTypes: [NSArray arrayWithObject: NSRTFDPboardType]
    owner: myTaskListController];
    [myTaskListController exportData: [[self document] tasks]
    forType: NSRTFDPboardType toPasteboard: pboard];
    // Get the RTFD data from the pasteboard.
    NSData * data = [pboard dataForType: NSRTFDPboardType];
    if(data)
    // Replace the text in the print view with the data to be printed.
    NSRange range = NSMakeRange(0, [[myPrintView textStorage] length]);
    [myPrintView replaceCharactersInRange: range withRTFD: data];
    This works because myPrintView is an NSTextView. You could make yours a PDFView and do setDocument instead of replaceCharactersInRange.

  • Can't print from 64bit applications

    I have tested this on 10.6.8 server and 10.8.X server.
    HP printers are fine.
    All my Xerox printers (5790s, 5335s, 7855s, etc) don't work when adding the driver, sharing them out, and then a client tries to print with a 64bit application. I tested this in Google Chrome on my machine (Mac OS X 10.7.5) and it prints just fine, then when I try and do anything in Mail or Textedit it hangs, then tries to print two ghost "Printer Status" reports before my job, ultimately not printing at all.
    Xerox has no answer for me, and I've tried their latest drivers 2.94.3. My mac gets the correct driver and information from my print server but then goes nowhere. Has anyone ever heard of something like this?!
    Thanks

    If you have a box that's still under warranty or under AppleCare, call Apple Support.
    You might try using the generic CUPS drivers path (if that's available), and see if that works.
    This Xerox discussion might be related/useful.

  • Printing From MS Access Report Looks Different on Different Machines

    Hello all. I am creating a pdf report from Access. I am on a very large government network and several users are creating the same report with exactly the same data. Each user has the same version of Acrobat Pro, the same version of Access, the same operating system. However, for some users, the reports are too wide, or some vertical grid lines are not lining up correctly, and for others, it looks fine. If I fix the report for some people, it will mess it up for others. What would cause this behavior? One person in the Access forum suggested that it may have something to do with which network printers we have installed on our machines. I have 4 printers installed on my machine including a color printer, but other users may have other printers. Any ideas? I am using Adobe Acrobat X Pro and Access 2010.

    Is everyone using Access 2010? The variations in Access may also be an issue. To check the layout in Access, go to the print menu and select the Adobe PDF printer and then go back through the Access report (or print preview). That is how it should look as it is created to a PDF.
    Other aspects that might affect the result could be the job settings selected for the Adobe PDF printer. lines tend to have problems if a low resolution is used in some cases. Try a Print or Press settings to be sure to get high quality graphics. You might also check the Print Quality setting in the printer properties (Layout>Advanced). I use 300dpi to get around some issues of a line being defined as a pixel and not showing on screen when using the default 1200 dpi. [these settings may vary with Acrobat version -- this machine uses AA 9]
    So checking Acrobat versions, OS, Access version, and the various settings may be required to get consistency. I have a tendancy to set the Adobe PDF printer as my default printer and then the results for my word processor are consistent between machines.

  • Officejet 6600 - Cannot Print from any application since Vista Update on 10/15/14

    Our wireless connected printer had been working fine.  On 10/15/14, updates from MS were installed.  After that, we can generate test pages from HP Printer Assistant but no other application prints.  That includes all MS Office projects, notepad, and any web browser.
    We've run the HP Print Doctor and it indicated that there are no problems.  We have since attempted to restore to the last checkpoint before the install and the restore fails. 
    Has anyone else run into this problem?

    Hey @KPL12345 ,
    Thank you for taking the time out of your day to ask that question on the HP Forums today!
    I understand that you are experiencing no response from your printer after upgrading to Windows Vista.
    Try uninstalling the software using this document >>Uninstalling the Printer Software
    Installing the software using this document >>Setting Up the Printer for a Wireless or Wired Network for the HP Officejet 6600 e-All-in-One and 67...
    After you have done that, try to print. If you can not print then run the Print and Scan Doctor again.
    Hope this helps, let me know.
    I worked for HP.

Maybe you are looking for

  • Report link that will open to a new window

    Hi, I need a report link that will open to a new window. Below is my code. {="<ahref=\"http://<server>:<port>/OpenDocument/opendoc/openDocument.jsp?sRefresh=Y&sPath ParentFolder,subfolder&sDocname=<Report Name>=wid"\">"[ID]+"</a>"} Thank you. Rose

  • Aperture and mobileme = washed out picture after downloading?

    Hi, Synced a few albums from Aperture to a few mobileme gallery's so a few friends could download the pictures very easy. One of them asked me why i screwed up the pictures because the all appeared to have a washed out look on his pc. Tried it myself

  • Need hints for Optimizing Photoshop CS4 on Leopard / Intel MacPro

    Just wondering if anyone had any hints for optimizing PS CS4 performance on Intel MacPro ( I have the 2.66 Dual-core Xeon) My MacPro has the upgrade ATI 1900 video card which I think is GL enabled. From what I have read CS4 now accesses the ATI 1900'

  • Mediator To Spring Error-Could not convert from java interface to interface

    Hi, I have a requirement to using a Spring component and my composite application would be File Read -> Mediator -> Spring Component -> File Write. I have to read a file and using mediator map the same to the Spring input and write the Spring compone

  • Is it possible to Edit Mpegs from DVDs?

    Hi there. I am just strating a project, a museum installation, that requires footage to be edited together from a variey of sources. Some of these are DVDs. How can I get footage from the DVDs and into FCP for editing. I can convert into Mpeg4 using