Printing of movieclip without stage color

Greetings all,
I have a flash stage which is in grey color. I have a blank movieclip which is in light pink in bgcolor. Can anyone tell me why when I tried to print the movieclip, my paper background will be printed grey? Is it because of my flash stage color? How do I fix this? (my original paper is white in color)
Thanks for your time,
-Zainuu

Hi kglad, I will be putting a datagrid inside the printClip movieclip
printClip.addChild(dg);
and I will need to print out all the data inside the datagrid, so I need those values to ensure that all data will be printed (if datagrid verticial scroll policy is TRUE)
is there other ways? Resizing of the rectangle properly or set to print no background color?
whole script:
for (var i = 0; i < 30; i ++)
    dp.addItem({no:i+1, Winner_Name:"Name_Name_Name_Name_Name_Name_"+(i+1), Prize_Title:"Title_Title_Title_Title_Title_Title_Title_"+(i+1),      Prize_Name:"PrizeName_PrizeName_PrizeName_PrizeName_PrizeName_"+(i+1)});
            SampleData.push(dp);
myDataGrid.columns= ["no","Winner_Name","Prize_Title","Prize_Name"];
myDataGrid.getColumnAt(0).width = 50;
myDataGrid.getColumnAt(1).width = 160;
myDataGrid.getColumnAt(2).width = 170;
myDataGrid.getColumnAt(3).width = 170;
myDataGrid.dataProvider = dp;
myDataGrid.setSize(463, 178);
myDataGrid.horizontalScrollPolicy = ScrollPolicy.ON;
clickme.addEventListener(MouseEvent.CLICK, clickmeFn)
var printClip:MovieClip = new MovieClip();
clickme2.visible = false;
clickme2.enabled = false;
function clickmeFn(e:MouseEvent){
          //creates a moveclip and a datagrid to print
          var dg:DataGrid;
          printClip.graphics.beginFill(0xFFFF2FF);
          printClip.graphics.drawRect(0, 0, 100, 100);
          printClip.graphics.endFill();
          printClip.x = 0;
          printClip.y = 0;
          addChild(printClip);
          this.setChildIndex ( printClip , this.numChildren - 1 );
          printClip.visible = true;
          dg = new DataGrid();
          dg.move(0, 0);
          dg.setSize(570, 178);
          dg.rowHeight = 40
          dg.rowCount = myDataGrid.length ;
          dg.columns = ["no","Winner_Name","Prize_Title","Prize_Name"];
          dg.getColumnAt(0).width = 50;
          dg.getColumnAt(1).width = 160;
          dg.getColumnAt(2).width = 170;
          dg.horizontalScrollPolicy = ScrollPolicy.OFF;
          dg.verticalScrollPolicy = ScrollPolicy.OFF;
          dg.dataProvider = dp;
          printClip.addChild(dg);
          // Assign cellRenderers.
          var col1:DataGridColumn = new DataGridColumn();
          col1 = dg.getColumnAt(1);
          col1.cellRenderer = MultiLineCell;
          // Assign cellRenderers.
          var col2:DataGridColumn = new DataGridColumn();
          col2 = dg.getColumnAt(2);
          col2.cellRenderer = MultiLineCell;
          // Assign cellRenderers.
          var col3:DataGridColumn = new DataGridColumn();
          col3 = dg.getColumnAt(3);
          col3.cellRenderer = MultiLineCell;
          //print button activated
          clickme2.visible = true;
          clickme2.enabled = true;
          this.setChildIndex ( clickme2 , this.numChildren - 1 );
          clickme2.addEventListener(MouseEvent.CLICK, clickmeFn2)
function clickmeFn2(e:MouseEvent){
          printDG();
function printDG(){
    var my_pj = new PrintJob();
    var myResult = my_pj.start();
    if (myResult) {
        var clipHeight = printClip.height;
        var _pageHeight = my_pj.pageHeight;
        var numPages = Math.ceil(clipHeight/_pageHeight);
                    var xMargin = -20;
        var _yMin = 0;
                    var _yMax = 0;
        for(var i:int=0;i<numPages ;i++){
           _yMax = _yMin + _pageHeight;
                       my_pj.addPage(printClip,new Rectangle(xMargin,_yMin, my_pj.pageWidth, _pageHeight));
                       _yMin = _yMax;
        my_pj.send();
        my_pj=null;
The reason I got clickmeFn2 is because if I call printDG(); at the end of clickmeFn, it prints nothing. I have no idea why is that so...
Thanks,
-Zainuu

Similar Messages

  • How can I print my calendar without the color codes?

    I need to print my 2005 and 2006 calendars (one month to a page) and then to highlight some of the line items for certain dates. I don't know how to get rid of the darn "color coding" so I just get a simple calendar with no group colors. I appreciate your help! Thank you!

    Roger,
    Thank you so much for the reply but that only removes the times from the screen.  Even when they are not visible on the screen, they are still there when I print the calendar.  Do you know how to get them to not print?
    Thanks!

  • 6600 Won't print in black without full complement of color cartidges

    Just experiencing this inability to print balck or greyscale without all the color cartridges, which I don't use.  This is one of the sleaziest practices I have encountered in the industry.  Both the software and the manual contain outright lies.  Instead of fooling around with these apparently useless and deceptive responses from HP, as a recently retired attorney with a lot of time on my hands I'll pursue my own solution - I'm filing a complaint with the Federal Trade Commission for unfair trade practice.

    Page 72 of the Officejet 6600 user manual says the following: Printing with black or color ink only 
    For regular usage, this product is not designed to print using only the black cartridge when the color cartridges are out of ink. However, your printer is designed to let you print as long as possible when your cartridges start to run out of ink.
    When there is sufficient ink in the printhead, the printer will offer you the use of black
    ink only when one or more of the color cartridges are out of ink, and the use of color ink
    only when the black cartridge is out of ink.
    • The amount that you can print using black or color ink only is limited, so have replacement ink cartridges available when you are printing with black or color ink only.
    • When there is no longer sufficient ink to print, you will get a message that one or more cartridges are depleted, and you will need to replace the depleted cartridges before you resume printing.  -------- HP and other printer manufacturers have different printer technologies for different needs.  For inkjet printers: Some have printheads built into the ink cartridges.  These printers can typically print with one or more of the colors completely empty, or even with color or black (but not both) cartridges removed. The Deskjet 6980 series is an example, or for an all-in-one see the Officejet 8040a.Other printers have separate ink supplies and replaceable printheads.  An example would be the Officejet 7110 printer.  The printhead in these printers can be replaced if they are damaged by running the printhead with colors out.  Some of these printers will allow printing with a color out, other will not.  If the printer is run without ink in one or more colors the printer may be damaged, but the user may be able to recover without having to send the printer for service.Other printers have permanent printheads.  To run these without some ink in all the colors would risk causing damage to the printhead due to clogs, air ingested in the printhead or burned out printhead firing resistors. The Officejet 6600 is an example of this type of printer. For printers with fixed printheads this could require service to get the printer to print properly again when the ink is finally replaced.  The document here describes how ink is used.  While the document is written for HP Inkjet printers the same principles apply to inkjet printers from other manufacturers.  If you never print in color a laser printer would likely be a better choice.  If you occasionally print color but mostly black an IPH printer like those in the first category above may be a good choice.  

  • How to print a plot with two colors Without using two plots

    Hello everybody,
    Escuse my English (poor Frenchies....)
    I'm working with VB6 and I will need to print a plot with two colors (Some values greater than a trigger for example, ...)
    I was looking for some help to discover if that thing is possible without using another plot, this is what I'm already doing, and it do not satisfy me (and my boss....)..
    Thank for your Help.
    Julien

    Hi Julien,
    I have found on the different link to make that you want.
    This first link is on National Instrument site, the first is general, and second provided information about : How Can I Programmatically Print Out a ComponentWorks Graph Object?.
    http://digital.ni.com/public.nsf/websearch/81D87CB2A5BF6C11862569E4008240FE?OpenDocument
    http://digital.ni.com/public.nsf/websearch/dc3430165bc916c586256317006f8cc9
    Links below are on the web, and explain how do you can print a graph on Visual Basic. (the first is French link  )
    http://khany.developpez.com/tutoriel/mschart/
    http://www.programmersheaven.com/zone1/cat378/18546.htm
    Regards,
    Message Edité par Christophe S. le 12-27-2005 01:51 PM
    Christophe S.
    FSE East of France І Certified LabVIEW Associate Developer І National Instruments France

  • Officejet 6100 won't print in B&W without full color cartridges installed (RIPOFF)

    NEVER again will I purchase any HP product.
    I had an important document to print up last night, and this printer will not work even with all settings to black and white only if any of the color cartridges are empty or missing.
    You are extorting money from customers who bought your product in good faith.
    I will be replacing this with a Canon printer today.
    You have lost a customer with your skeezy business practices HP.
    SHAME!
    This question was solved.
    View Solution.

    The color cartridge(s) are NOT out of the printer. They are still installed in the printer. They are just low or out of color ink. I have not taken them out of the printer at any time.
    The printer will not print when only black ink is required for the print job. The printer will NOT print at all right now!!! ALL of my HP printers in the past have printed in black ink when the color cartridge ink is empty. They will even print what is normally in color in grey.
    Again this printer will not print at all without color ink in the ink cartridges that are installed in the printer!  
    My husband is currently unemployed due to the declining economy. He was laid off after working for the same company for 23+ years. We recently bought this printer when our former HP printer stopped working. We bought this printer the day our old one stopped working because my husband needs to be looking for work by mailing resumes & cover letters. Again, we were using this printer to print resumes & cover letters.  On the very rarest of occassion this printer was used for color printing. 
    I am NOT happy with this printer! Why will it not print in black when the installed color cartridges are empty?????
    Kathryn {personal info removed}

  • How to print Adobe Forms without the black/gray backgrounds in the side columns

    How can we print Adobe Forms without the black/gray backgrounds in the side columns? We are wasting a lot of ink printing out these forms and would like to have simply black ilnes to distinguish columns and black lettering, but no background colors.  Any help would be appreciated. Thanks.

    I am not positive what you are printing from but I am thinking it is from the View Responses tab with a response row selected and then shown in "Detail View" and that the column of field names has a dark grey background...
    To change the color of the column headers select the row of headers (do this by clicking on the first dark grey header field and then scroll to the last one and shift+click on the last one), then in the "Text" tools change the text color to Black and the Fill color to white:
    (Selected the header cells)
    Changed the text/font color to black and the fill color to white
    Now you can see the detail view does not have the dark grey.
    Thanks,
    Josh

  • Printing on paper without spaces ?

    Sir,
    I have a problem with printing the page of course it is printing the page without any problem but the problem does exists in the setup.I have used the code provided in the forum for printing.Where here when the printing is on, the printer starts the printing after leaving
    some spaces. But i want to print the page from where i start(from where i insert the paper).I have used the following code for printing.Here i couldn't find out where i need to make the changes.So,pls. do help me in this regard.I will be so thankful to u.
    My code is:-
    public int print(Graphics g, PageFormat pageFormat,int pageIndex) throws PrinterException
    Graphics2D g2 = (Graphics2D) g;
    g2.setColor(Color.black);
    g2.setFont(fnt);
    int fontHeight=g2.getFontMetrics().getHeight();
    int fontDesent=g2.getFontMetrics().getDescent();
    //leave room for page number
    double pageHeight = pageFormat.getImageableHeight()-fontHeight;
    double pageWidth = pageFormat.getImageableWidth();
    double tableWidth = (double) tableView.getColumnModel().getTotalColumnWidth();
    double scale = 1;
    if (tableWidth >= pageWidth) {
    scale = pageWidth / tableWidth;
    double headerHeightOnPage=
    tableView.getTableHeader().getHeight()*scale;
    double tableWidthOnPage=tableWidth*scale;
    double oneRowHeight=(tableView.getRowHeight()+
    tableView.getRowMargin())*scale;
    int numRowsOnAPage=
    (int)((pageHeight-headerHeightOnPage)/oneRowHeight);
    double pageHeightForTable=oneRowHeight*numRowsOnAPage;
    int totalNumPages= (int)Math.ceil((
    (double)tableView.getRowCount())/numRowsOnAPage);
    if(pageIndex>=totalNumPages)
    return NO_SUCH_PAGE;
    g2.translate(pageFormat.getImageableX(),
    pageFormat.getImageableY());
    g2.drawString("Page: "+(pageIndex+1),(int)pageWidth/2-35, //For printing the page no. at the bottom
    (int)(pageHeight+fontHeight-fontDesent));//bottom center
    g2.translate(0f,headerHeightOnPage);
    g2.translate(0f,-pageIndex*pageHeightForTable);
    //If this piece of the table is smaller than the size available,
    //clip to the appropriate bounds.
    if (pageIndex + 1 == totalNumPages)
    int lastRowPrinted = numRowsOnAPage * pageIndex;
    int numRowsLeft = tableView.getRowCount() - lastRowPrinted;
    g2.setClip(0, (int)(pageHeightForTable * pageIndex),
    (int) Math.ceil(tableWidthOnPage),
    (int) Math.ceil(oneRowHeight * numRowsLeft));
    //else clip to the entire area available.
    else{
    g2.setClip(0, (int)(pageHeightForTable*pageIndex),
    (int) Math.ceil(tableWidthOnPage),
    (int) Math.ceil(pageHeightForTable));
    g2.scale(scale,scale);
    tableView.paint(g2);
    g2.scale(1/scale,1/scale);
    g2.translate(0f,pageIndex*pageHeightForTable);
    g2.translate(0f, -headerHeightOnPage);
    g2.setClip(0, 0,(int) Math.ceil(tableWidthOnPage),
    (int)Math.ceil(headerHeightOnPage));
    g2.scale(scale,scale);
    tableView.getTableHeader().paint(g2);//paint header at top
    return Printable.PAGE_EXISTS;
    Thanx,
    m.ananthu

    i believe that there are hardware constraings on this, for example when you use microsoft word there is a minimum size for the margiens, so i believe that there are limitations. There are methods in the printing api to find out just how much of the page you can and can't print on, as well as how big the page is
    check out the api documentation
    hope this helps
    webaf409java

  • I'm unable to print in lightroom 5.4 . Macbook retina  OS X Version 10.9.2. Print button is in gray color.

    I'm unable to print in lightroom 5.4 . Macbook retina  OS X Version 10.9.2. Print button is in gray color.

    Pages v5 does not play nice with current Avery label templates in Word format. Pages v5 does not natively perform mail merge without adapting a third-party AppleScript solution.
    Labelist 8 is in the OS X App Store for USD $20. It is comprehensive, label software. Download button on their site gives you a free, full functional, 30-day trial. Recommend you consider Labelist over any Pages v5 kludge. Your time has a value.

  • Flash Player Stage Color Problem

    Hello all!
    Recently I have run into a very strange issue, which involes the Flash Player (standalone) on my computer. I will try to summarize the issue so you can easily get the picture
    1. I began noticing the issue when I hit "Ctrl + Enter" to test a Flash Movie and my stage color (set as 0x000000) suddenly appeared... completely white. Please notice that it had been black all the time, it simply suddenly got to white wihout me doing anything!
    2. I am sure my ActionScript does not have anything to do with the stage color, -> there should be no accidental mistakes caused by runtime scripts.
    3. My operating system: Windows 7, 32 bit with an above average system specification. In fact it has been running Flash Professional CS5 for a long time without any problem at all
    4. My standalone Flash Player (FlashPlayer.exe): 10.3.183.7 (I believe it is the latest version at the time of writing)
    5. Feeling curious about the case, I tried opening my Flash Professional CS4 (I install both CS4 and CS5 on my machine), create a blank new document, set the stage color to something other than white -> test with "Ctrl + Enter" -> the result is that white background again!!!! (at that time I began to "omg" in my mind...)
    6. I tried to open a few .SWF files on my machine that were created a long time ago. All having same white background. I'm sure in the past these files were having background colors other than white!
    7. Publishing the Flash file into an HTML wrapper and viewing the HTML file -> stage color appears normally
    8. Publishing the Flash file into an EXE file and opening that EXE file -> stage color appears normally
    9. Hitting "Ctrl + Enter" twice (meaning testing the Movie in the "Simulate Download" mode) -> stage color appears normally after the file finishes loading
    10. I have tried clearing the Flash Professional User Preference Settings (following Adobe's guide), uninstall and reinstall my Flash Player (using Adobe's uninstaller) but all in vain. The only thing left I haven't done is removing and reinstalling Flash CS5, which takes a long time and I'm not happy to do so...
    .. I guess that's the whole picture so far. Anyone having the same problem / found out a way to fix this?
    Thank you so much for your time and your help,
    Best regards,
    Khang

    Hi Chris,
    Thank you for your prompt respond. I'm sorry I couldn't get round to replying it any sooner! And just to let you know, Nico's solution works great for me! We managed to fix this thing by deleting / renaming the "mm.cfg" file under C:\Users\<UserName>. Yes, the culprit was that config file! ... something we might as well easily overlook in a forest of files and folders isn't it?
    Hi Nico,
    I got nothing else to say here... you just saved my day (or I could say 'my month' :D)! Thank you very much for your profound knowledge and your sharing! I would guess there is something wrong with the overall flashplayer config, but I would probably never think of that file... My sincere admiration and appreciation, Nico

  • Why is my printer HP Officejet 6600 using color ink even though I'm not printing in color?

    I've had this printer about a year now. I've replaced the entire line of ink cartridges at least 3 times now, working on 4. I don't print much at all. A couple of sheets a day or so. I always thought that it was using color ink very quickly so I thought I'd put it to a test. I changed the default settings to black ink only. I replaced all of the ink cartiridges, color and black. I decided this time I wouldn't print anything in color just to see what happened. Well the same thing is happening as if I were using color ink. The color ink is draining out much quicker than the black ink. This seems weird to me. Now we are at the point where it won't print unless I replace the magentia cartridge. This also seems unfair that they do not mention this clearly when you purchase the item. Something like "Oh, by the way, we aren't making enough money doing business as we should, so we will make you replace your ink supply even though it really isn't necessary and that should pick up the slack". I've paid for a new printer already with ink costs. Is there a way to get around this or am I stuck with it. Thanks.
    This question was solved.
    View Solution.

    When you set the printer to print in grayscale did you also select "Black ink only"?
    HP and other printer manufacturers have different printer technologies for different needs.  
    Some have printheads built into the ink cartridges.  These printers can typically print with one or more of the colors completely empty, or even with color or black (but not both) cartridges removed. The Deskjet 6980 series is an example. 
    Other printers have separate ink supplies and replaceable printheads.  An example would be the Officejet 8600 printer.  The printhead in these printers can be replaced if they are damaged by running the printhead with colors out.  Some of these printers will allow printing with a color out, other will not.  If the printer is run without ink in one or more colors the printer may be damaged, but the user may be able to recover without having to send the printer for service.
    Other printers have permanent printheads.  To run these without some ink in all the colors would risk causing damage to the printhead due to clogs, air ingested in the printheadvor burned out printhead firing resistors. The Photosmart 6600 series is an example of this type of printer. For printers with fixed printheads this could require service to get the printer to print properly again when the ink is finally replaced.  
    The document here describes how ink is used.  While the document is written for HP Inkjet printers the same principles apply to inkjet printers from other manufacturers.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Resizing parent movieclip without affecting the children

    Hi all,
    What's the best way of  resizing parent movieclip without affecting the children?
    I have a container movieclip that resizes depending on the stage, and when I add another movieclips to it they also resize, but I want them to keep the original size,
    is it possible?
    Many thanks

    Hi, thanks for the reply,
    I already tried this way, I put a bitmap as a background of the movieclip and made only it dependent on the stage size,
    something like that:
    mc.bg.width = stage.stageWidth; (and not mc.width, as its width will change along with the bg width)
    so when I add children to the mc, they don't change any more.
    I'm a .NET developer and new to Flash platform, and I think it would be nice from the community to make a built in property for MovieClip class -
    resizeChildren: Boolean
    I lost a whole day on this problem, because when I drew a movieclip in a designer side I saw that its background size changed along with the size change, and when I added children to it from the code the movieclip's size changed and the background stayed still, quite strange behavior for an HTML guy
    I think that it would be better to consider already drawn movieclip not to have any children yet and have its background as its part (not at(0)) and let the programmer choose later added children's resize behavior.
    thanks again

  • Print crystal report without preview

    Dear All,
    i want print crystal report without preview.
    when i click print button i want show printer list install in that computer.
    so user can choose which printer that use to print. I means like if we printing document from office, we can choose the printer.
    how that i can do that?
    please help.
    best regards,
    Surbakti

    Since this issue has little to do with sql server, I suggest you post your question to a forum for CR
    SAP CR community

  • I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    Hi Crushed,
    Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
    Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
    Regards,
    Ian.

  • Print HTML doument without open it from an applet

    I need to know how I can print an HTML document from an applet developed with Jbuilder 4. I'm not a very expert developer and I need a detailed information about this problem. Important is that the HTML document is printed without open it.
    I use: win 2000 pro
    J2RE 1.4.0
    thanks in advance for your help
    Mauro Losa

    Thanks for your help but my problem is that i want print the document without display it.
    I think to have find a solution using Java Print Service API (JDK 1.4) but when i run the example the system display this error refered to this instruction
    "PrintService[] pservices = PrintServiceLookup.lookupPrintServices(flavor, aset);":
    java.lang.UnsatisfiedLinkError: getDefaultPrinterName
    at sun.print.Win32PrintServiceLookup.getDefaultPrinterName(Native Method)
    at sun.print.Win32PrintServiceLookup.getDefaultPrintService(Unknown Source)
    at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
    at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
    at javax.print.PrintServiceLookup.getServices(Unknown Source)
    at javax.print.PrintServiceLookup.lookupPrintServices(Unknown Source)
    at untitled4.applet1.main(Applet1.java:32)

  • Print Report RDLC without preview ... very important for me.

    Hello, I want to ask you about print Report RDLC without preview .
    I saw this article here :
    http://msdn.microsoft.com/en-us/library/ms252091.aspx
    but I did not understand because the code is long and I think difficult.
    could you put simple code please?
    Thanks a lot.

    Would that fix this mod_jk problem? Do you mean to say that I have those permissions when I actually edit those files?
    I think the wiki is also mistaken assuming that JAVA_HOME is in the /opt directory.

Maybe you are looking for