How do I get AS to print everything?

This is about the second method I'm trying to get a data grid to print.  In this attempt, I'm dynamically creating things and then printing them.  All items are printed, but the format sucks.
1) the user clicks a button below the data grid
2) in code I create a PrintAdvancedDataGrid, but I don't know how to adjust individual columns
3) all columns are one width and no wordwrapping happens
            private function printCaseNotesAS1():void
                var flexPrint:FlexPrintJob = new FlexPrintJob();
                var myGridPrint:PrintAdvancedDataGrid = new PrintAdvancedDataGrid();
                var numNotes:int = model.dpCASENOTES.length;
                if (numNotes > 0)
                    var dataSource:ArrayCollection = new ArrayCollection();
                    for (var i:int = 0; i < numNotes; i++)
                        var descHolder:Object = new Object();
                        descHolder.Description = (model.dpCASENOTES[i] as CaseNotesVO).shortDescription.toString();
                        descHolder.Description += "\r\n\tprinted from AS1";
                        descHolder.NoteNum = "";
                        descHolder.Notes = "";
                        descHolder.UpdatedBy = "";
                        descHolder.PostedDate = "";
                        dataSource.addItem(descHolder);
                        var dataHolder:Object = new Object();
                        dataHolder.Description = "";
                        dataHolder.NoteNum = (i+1).toString();
                        dataHolder.Notes = (model.dpCASENOTES[i] as CaseNotesVO).notes.toString();
                        dataHolder.UpdatedBy = "";
                        dataHolder.PostedDate = "";
                        dataSource.addItem(dataHolder);
                        var footHolder:Object = new Object();
                        footHolder.Description = "";
                        footHolder.NoteNum = "";
                        footHolder.Notes = "";
                        footHolder.UpdatedBy = (model.dpCASENOTES[i] as CaseNotesVO).updatedBy.toString();
                        footHolder.PostedDate = (model.dpCASENOTES[i] as CaseNotesVO).postTs.toString();
                        dataSource.addItem(footHolder);
                    if (flexPrint.start())
                        FlexGlobals.topLevelApplication.addElement(myGridPrint);
                        myGridPrint.dataProvider = dataSource;
                        myGridPrint.width = flexPrint.pageWidth;
                        myGridPrint.height = flexPrint.pageHeight;
                        myGridPrint.variableRowHeight = true;
                        flexPrint.addObject(myGridPrint);
                        while (myGridPrint.validNextPage)
                            myGridPrint.nextPage();
                            flexPrint.addObject(myGridPrint);
                        flexPrint.send();
                        FlexGlobals.topLevelApplication.removeElement(myGridPrint);
                else
                    Alert.show("Nothing to print","Warning");
How do I address the properties of columns?  The results looks like this
a) all columns the same width
b) no wordwrapping for long text
I did a print to file to get it here, but it came out in a non-text format.  Any ideas on how to 1) print it or 2) view it?

I couldn't figure out using code assist how to do that.  I didn't have any examples to work from.
The goal would be to eliminate the grid lines, resize the columns to logical sizes, and allow "Notes" to wordwrap.
I'm going to start a new thread on the coding solution found at:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/printing/FlexPrintJo b.html
This adds some features that would be nice (headers and footers), but I don't understand it

Similar Messages

  • HT3669 I have an HP deskjet color printer that only prints in black and white from my mac ... how do I get it to print in color

    I have an HP deskjet color printer that only prints in black and white from my mac ... how do I get it to print in color

    Check the printer itself.  Some printers you need to set the color & B&W settings on the printer itself instead of the Mac.   If that is not the case w/your printer, contact HP tech support and/or post in their forums if they have one. 

  • When I AirPrint it only does small portions of the page. How do I get it to print the whole page?

    When I AirPrint The printer only prints a portion of the page.  How do I get it to print the whole page.

    It would help if you stated what printer you are using and what application you are doing the printing from. Also, what are you printing?

  • I am trying to print a pdf document from an electronic journal at my school, and i can only get it to print what is on the screen at the time i hit print.  How do i get it to print the whole document?

    how do i get it to print the whole article?  i don't seem to have a problem printing from my old windows laptop

    melbaby_3 wrote:
    when I clicked on your link and hit print, all pages were there!
    That suggests there's no problem with Safari or Quartz, the PDF rendering engine used by Safari, Preview, and other Mac applications.
    When I'm in the database and have the article open that I want to print, I click on the "full text in pdf" link and it opens in another safari window.
    Does the PDF in this other Safari window have all the pages? If yes, why don't you print from this window?
    It's very difficult to tell what might be going on if you don't give very specific details.
    For instance, in many reference databases, full-text articles are not free. You have to pay to view them, either article by article, or by subscription. Your school may have such a subscription, but, if it does, you probably need to access the database through the portal, web site, or facility provided by your school (your school's librarian should be able to help you with that). If you don't, the database has no way of knowing you have a right to view the full text, and may give you just a preview or the article's first page.
    Another possibility is that the database provides full-text PDFs in a format not compatible with Quartz, which may be able to render only the first page. But, in such a case, I'd expect Safari to print blank pages. If that's the case, you need to save the PDF on your hard disk and open it with Adobe Reader (Preview wouldn't work).
    There are other possibilities, but these two seem to me the most likely.
    Would I have to save it in preview first
    You should save the PDF on your hard disk from Safari. (I think you should do this anyway, just in case you need to refer to the article again later.) Instead of just clicking the  "'full text in pdf' link", press and hold Control, then click. This should give you a contextual menu; if the link points to a PDF file, you should see the commans "Save Linked File to 'Downloads'" and "Save Linked File As…". Use either, save the file, then, in Finder, double-click on it. Preview should open it.
    It is possible that the link is not to a PDF file, but to a script which fetches that PDF file for you. In that case, it's pointless to download it. Click on it, and then, if the PDF viewing window opens in Safari, move the cursor towards the centre of the bottom of the window. A bar with commands should appear; one of them will download the file to your Downloads folder.

  • How do I get iCal to print the calender just as it appears on the screen, not as lines down the side to indicate length of event?  I like the whole bubble of time approach as it is on the screen.

    How do I get iCal to print my calendar just as it appears on the screen?  I like the whole block-out method rather than just a line down the side indicating the time devoted to an event.  Is there any way to change the style of how it' sprinted?

    View > Sidebar > Bookmarks (Ctrl+B)
    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily.

  • How do I get my old printer "HP Laserjet 4mv" to work on my newer Macs with OSX?

    How do I get my old printer "HP Laserjet 4mv" to work on my newer Macs with OSX?
    There is no HP support for this old printer. I have tried to connect via ethernet (thru ethernet router), and it does not show up in printer preferences. The printer worked fine on system 9x but when I went to my new macs with system X no luck. This is a great B&W printer that prints at 18 x 24". I would like to keep it and not junk it, but its been sitting on my desk unused for some time now. Any thoughts or JUNK IT! Thanks, R.T.

    Does anyone at Apple have help for this sort of question - I too have an old printer (HP LaserJet 5MP) that I would like to keep using on my Mac. (Mac OSX 10.6.8).
    I got it working by getting a USB cord that connects to it - but every once in a while it just stops working for weeks. The mac 'sees' it and it sends the data because the printer lights start blinking but then it just doesn't do anything. Is there no one who can tell me (and raterada) how to get some new life into these old printers. I would rather not add this (and a new toner cart) to the landfill just yet. . .

  • Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    I recently upgraded to itunes 11.0.1.12 and that fixed the CD Jewel Case Insert song titles problem. Thanks itunes. It's working great!!.

  • My epson stylus SX235W has all of a sudden decided it won't print from my mac. it says rastertoescpII has unexpectedly quit. what is this and how do i get it to print from my mac again?

    my epson stylus SX235W has all of a sudden decided it won't print from my mac. it says rastertoescpII has unexpectedly quit. what is this and how do i get it to print from my mac again?

    Open the Sharing pane in System Preferences. If the Computer Name is not set, enter a name. You may first have to click the lock icon in the lower left corner and authenticate to unlock the settings.
    Credit for this solution to ASC user Yuengdog1983.

  • How do you geT ICal to print out the To Do Items in the same order as you have sorted them on the screen

    How do you geT ICal to print out the To Do Items in the same order as you have sorted them on the screen

    Without actually seeing some of what is in the .ics attachment there's really no way to see what's going on.

  • How can I get it to print output of inputstream?

    Please forgive me for running two similar thread but the other thread ahs strayed from primal concern of coding.
    Some help with the code please???
    I have set up an inputstream and outputstream to the "ftp process" of java.lang.Runtime I have sent the command "dir" to ftp.
    But How can I get it to print all the files etc of the "dir" sent to ftp process?
    Also I have just read that it is perhaps better to buffer the STREAMS.
    How do I do this for outputsteam? I think I have some clue to do for inputstream with bufferedreader?
    import java.lang.*;
    import java.io.*;
    public class RuntimeFTP{
    public static void main(String[] arg){
    Runtime rt = Runtime.getRuntime();
    String[] callAndArgs = { "ftp.exe", "jaguar.wmin.ac.uk" };
    Process process = null;
    OutputStream os = null;
    InputStream is = null;
    String login = "w0109699";
    String password = "11041976";
    String dircommand = "dir";
    byte[] barraylogin = login.getBytes();
    byte[] barraypassword = password.getBytes();
    byte[] barraydircommand = dircommand.getBytes();
    try
    process = rt.exec(callAndArgs);
    process.waitFor();
    System.out.println("Process exit code is: " + process.exitValue() );
    catch(IOException e)
    System.err.println("IOException starting process!");
    catch(InterruptedException e)
    System.out.println("Interrupted waiting for process!");
    try
    os = process.getOutputStream();
    os.write(barraylogin);
    os.write(barraypassword);
    os.write(barraydircommand);
    catch(IOException io)
    System.out.println("io exception write to outputstream");
    try
    is = process.getInputStream();
    while (is.read() != -1)
    How can I print the data to the user
    i.e all the data obtained from the "dir" command sent to ftp?????????
    catch(IOException io)
    System.out.println("io exception read fron inputstream");

    the above code does not work so I have abondaned it.
    I want to integrate an ftp program into a program I am working on. I have scoured the net for reuse able code and come across a "t or Linlyn ftp program" which claims is easily integrate able into larger applications.
    The problem is did does not seem to work and gives me errors. I would be grateful if someone could tell me why I am getting the error, here is the error:
    C:\My_DL_Dap\ftp in java>appletviewer t.java
    Warning: <applet> tag requires width attribute.
    java.security.AccessControlException: access denied (java.net.SocketPermission j
    aguar.wmin.ac.uk resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:
    401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)
    at java.net.InetAddress.getAllByName0(InetAddress.java:909)
    at java.net.InetAddress.getAllByName0(InetAddress.java:890)
    at java.net.InetAddress.getAllByName(InetAddress.java:884)
    at java.net.InetAddress.getByName(InetAddress.java:814)
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:109)
    at java.net.Socket.<init>(Socket.java:118)
    at Linlyn.ftpConnect(t.java:326)
    at Linlyn.<init>(t.java:236)
    at t.init(t.java:83)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    I would also be grateful if someone could try out the program and tell me if it works for them, then I could determine if it is because ftp clients are being blocked by my server. The ftp program is very small, here is the url:
    http://www.afu.com/jdownload.html
    1) compile the code
    2) fill in everywhere it requests "your-server" "username" and "password"
    3) to run appletviewer t.java

  • PDF's print two sided.  How can I get them to print on single pages?

    PDF's print two sided.  There is no option shown.  How can I get thelm to print on single pages?

    1: Go into iTunes.
    2: Right click on the song and choose 'Get Info' (or press cmd+i on a Mac).
    3: In 'Info' change the album name to the one you want it to go into, when you start typeing it should automatically come up.
    4: Check that the disk number and track number is correct.  It should be automatic.
    4: Press OK.
    You should see it go into the album now.

  • How do I get my HP Printer to select US Letter instead of borderless letter

    How do I get my HP Printer to select US Letter instead of borderless letter?

    Thanks. As I understand it, you want your Print dialog to retain the most recently used settings. That's reasonable and I believe that is the way it is supposed to work.
    You may consider the following a fix or a workaround. In the Print dialog you have the option of configuring your settings and saving them as a preset, as in the following screenshot:
    "Presets" are in the dropdown menu near the top.
    Does this work for you?
    If not, and you are comfortable with creating a new priner queue (which it appears you are, since you already did it trying to troubleshoot) then try this:
    Go to System Preferences > Print & Fax, select your printer by right-clicking the printer (control-click does the same thing). Select "reset printing system" from the menu that appears. Confirm that you know this will eliminate all your printers.
    This may or may not result in different actions than removing and reinstalling the printer as you did.
    Then, add the printer in the usual manner and see if that fixes anything.

  • Mozilla 3.6.8 upgrade will not allow print to HP1200 w/Mac 10.5.8 so how do I get it to print?

    When I try to print to a a HP 1200 I get only blank pages. It happened when Mozilla upgraded to 3.6.8 and my Mac system is using 10.5.8. How do I get it to print? I tried reloading the print driver and restarting the system, but that does not work.
    == This happened ==
    Every time Firefox opened
    == Mozilla upgraded

    Does your MacBook meet the minimum requirements for Mountain Lion?
    Your Mac must be one of the following models:
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    Xserve (Early 2009)

  • How can I get my wireless printer to join my wifi network?

    Since HP Setup Assistant doesn't work with Mavericks, is there another way to get my wireless printer connected to my new wifi network? This printer (HP Officejet Pro 8000 A809) worked just fine with Mavericks on my old wifi network. But my DSL provider recently installed a new router, so I have a new wifi network, which  works just fine with everything else.
    I was able to get my two Airport Expresses to join my new network, using Airport Utility, but I'm stumped as to how to get my printer to join the new network without the aid of HP Setup Assistant.
    Following the advice of Shlomi, I managed to reset my printer so that it now appears in my list of wifi networks under Devices, as hpsetup. But that's as far as I got. Any help would be most approeciated.
    This question was solved.
    View Solution.

    Bruce777 solved this for me, thank you Bruce! My printer now works perfectly on my new wifi network!
    Bruce's  instructions, for anyone else having the same issue:
    - delete any previously set up printers
    - scrub old hp software and update software to get the hp 2.8 drivers
    - remove the usb cable from the printer if you have one connected
    - reset the printer network to hpsetup (hold down the power button and press network button 2x and then cancel 3x, release power button.)
    - print out the wireless network test report (hold down the network button and press the update button 2x). verify the network name / ssid is hsetup
    - got to sys prefs > network and change the mac wireless network to hpsetup
    - go to the sys pref > print scan
    - add the HP 8000 printer
    - click on the options and supplies button and click on the Show Printer Webpage
    - click on the networking tab > wireless in the left pane > start network wizard and change the network from hpsetup to your network
    - finish (this page may freeze up.  close the browser)
    - go back to the sys prefs and change the wireless network back to your networt
    - go to the printer and print out the wireless network test report (press network button and update button 2x).  Check that the SSID is your network
    - go to sys prefs > print scan > select your printer > options & supplies > show printer webpage > network info (check ssid and compare to wireless network test report)
    - try printing something to your printer.  It might take a little time the first print.

  • How do I get envelopes to print properly

    I'm going out of my mind. I've been trying to do a mail-merge print of Monarch (4"x10.5") envelopes on a networked HP4000N Laserjet. I've done the mail merge using MS Word, and OpenOffice. I've tried to print to the HP directly and print to PDF (save as PDF) and print to the PDF printer. I've tried to print the PDF created using Adobe Acrobat 9 Pro.
    The result is totally random. Either the envelope is taken through the printer and comes out blank, or it prints part of the address cutting off half, or prints the wrong orientation, or prints the same envelope again and again. On screen everything looks fine. The envelopes are the right size and orientation on screen is correct. What is totally unusual is that Acrobat can't print this correctly.
    Since I am unable to print from four programs, I don't think this is a problem with the programs. But I can't figure out how to get these envelopes printed.
    How are you supposed to print Monarch envelopes using OSX 10.5.8?
    Any suggestions or ideas are appreciated!
    (Please don't suggest reinstalling anything since these programs can print everything else OK. This is only with printing envelopes.)
    Thanks.

    I'm going out of my mind. I've been trying to do a mail-merge print of Monarch (4"x10.5") envelopes on a networked HP4000N Laserjet. I've done the mail merge using MS Word, and OpenOffice. I've tried to print to the HP directly and print to PDF (save as PDF) and print to the PDF printer. I've tried to print the PDF created using Adobe Acrobat 9 Pro.
    The result is totally random. Either the envelope is taken through the printer and comes out blank, or it prints part of the address cutting off half, or prints the wrong orientation, or prints the same envelope again and again. On screen everything looks fine. The envelopes are the right size and orientation on screen is correct. What is totally unusual is that Acrobat can't print this correctly.
    Since I am unable to print from four programs, I don't think this is a problem with the programs. But I can't figure out how to get these envelopes printed.
    How are you supposed to print Monarch envelopes using OSX 10.5.8?
    Any suggestions or ideas are appreciated!
    (Please don't suggest reinstalling anything since these programs can print everything else OK. This is only with printing envelopes.)
    Thanks.

Maybe you are looking for

  • BO Mobile using Blackberry Simulator_Webi Report Error JVM 104

    Hi Everyone, I have installed BO Mobile XI 3.1 server on the same machine (Windows XP Professional version 2002 SP3) on which I have my BOE XI 3.1 server deployed. I am using Blackberry MDS and Blackberry Smartphone Simulator, installed again on the

  • Credit control on LC

    Dear Experts, There is one new requireemnt from my clinet. My client using SAP4.7 and would like to control customer credit limit based on Letter of credit. Business would receive LC for evry sales order or combination of sales orders. They need to c

  • Some more info on Installation - what's wrong?

    Here is an excerpt from the dcm logfile. I've installed iAS with just the most important components, i.e. Http Webserver and OC4J, so no infrastructure. I don't have a clue why this type of easy installation is so hard!!!? I don't have a directory se

  • Its very Urgent Guys!!!

    Hi Guys, I used a string (str2(70) VALUE '+ - * / ( ) { } [ ] < > & ^ % $ # @ : ; " _ = ! ~ | \ ? / , . ` '.) to replace all the spl characters in a material description but the thing is i could not able to incorporate ( ' ) this spl character,if i d

  • Delay in loading web pages after airport express installation

    Hello, I had my intel imac hooked up to dsl directly through ethernet (PPPoE), and I had really fast internet browsing. I then got an airport express, hooked it up to create a wireless network, and it worked, except that, while loading a new web page