NNKL.COM
welcome to my space
X
Search:  
 HOME   Printing problem !
Printing problem !
Published by: rose 2010-03-15
Welcome to:nnkl.com

  • Hi,

    I have frustrating problem with printing. In attachment you have example file.

    So, I have one dynamic text field inside MC. Text field is filled from txt file (myText.txt), also one picture is attached to text. When I print this text field I always get rectangle below text in color of Scene background color!???!!



    Anyone knows what is problem here?



    Thanks,


  • Quick note... I don't have a printer here, but I worked with the PJ class.
    addPage takes as a parameter a MovieClip.
    This means that the folowing line is wrong


    Hi virusescu,
    Although in help stays that parameter must be movie clip you can pass text field too. That works.



    Even if I put only MC(text_mc) as parameter there’s still rectangle below printed text.



    You should also check the pixel To twips conversion, if you want to be able to control the positioning and the final aspect of you printed page.



    I really tried all combinations, nothing helps.

    Please if you can try my example and if you can get clean text without any other things please send me modified code for review.

    Thanks !


  • I didn't download your file cause I don't have f8 on this comp... but I did this example for DQS a couple months back.

    http://www.beyondthepixel.com/downloads/dqs/dqs_print/
    http://www.beyondthepixel.com/downloads/dqs/dqs_print/dqs_print.zip

    You can find some accurate documentation on it here:
    http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary628.html


  • I would test it, only if I had a printer :)....

    Here's what i've used for my last project, maybe it helps you

    printGraph.onPress = function() {
    var pj:PrintJob = new PrintJob();
    pj.start()
    if (pj.addPage(this._parent.paper)) {
    trace("Printing. Please Wait...");
    } else {
    trace("Error printing. Check your printer settings");
    }
    pj.send();
    delete pj;
    };

    The movie clip paper had a widht of 595 pixels and a height of 842.. default print sizes for A4 page.

    You could draw a white rectangle that size behind the page.. and it sure won't dispay anymore of your background...


  • Quick note... I don't have a printer here, but I worked with the PJ class.
    addPage takes as a parameter a MovieClip.
    This means that the folowing line is wrong

    if (my_pj.addPage("text_mc.my_txt")) {
    pagesToPrint++;
    }

    it should be :kommie:

    if (my_pj.addPage("text_mc")) {
    pagesToPrint++;
    }


    You should also check the pixel To twips conversion, if you want to be able to control the positioning and the final aspect of you printed page.

    1 pixel = 1 point = 1/72 inch = 20 twips
    1 inch = 72 pixels = 72 points = 1440 twips
    1 cm = 567 twips

    Good Luck


  • Remove your background color out of that MC (text_mc) and it won't print like that. Put it on a layer below your MC not inside the MC, and get rid of the border.


  • print_btn.onRelease = function(){
    {
    var pj = new PrintJob();
    var success = pj.start();
    if(success)
    {
    pj.addPage("text_mc.my_txt");
    pj.send();
    }
    delete pj;
    }
    }


  • Oh... try...

    print_btn.onRelease = function(){
    {
    var pj = new PrintJob();
    var success = pj.start();
    if(success)
    {
    pj.addPage("text_mc.my_txt",{xMin:0,xMax:600,yMin:0,yMax:800}
    );
    pj.send();
    }
    delete pj;
    }
    }


    Setting up margins doesn’t help too, I tried all options before.


    And just as a side note I haven't been wasting paper to print these :D :lol:


    I see you didn’t :)

    Anyway thanks for efforts to solve this problem.


  • Thanks simplistik for idea! :) Finally I manage to get clear text, although I’m mad on macromedia because of this bug that cost me a lot of nerves ;)

    Thanks.
    :lol: I dunno about bug... but I would've suggested that right away but I thought it was already a bg... not the stage color... that was until I tried to delete it and almost wasted 2 minutes until I figured out it was the stage color that was grey and not an object :lol:


  • Hi Simplistik,



    Unfortunately old fashion printing (like this sample, printing particularly frame) style don’t fit to my project. Most of application is made dynamically so the text fields are.



    I use PrintJob Class.



    In attachment is MX2004 version, so when you will have time to look up…



    Thanks,
    Here... weither your content is dynamic or not doesn't matter... as long as you make the printnum point to the correct frame you want to print it works fine... I've tested this and it works fine on yours.


  • Change your stage background to white not grey, and the grey box will disappear. If you still want your stage to look grey but not print grey... just make a bottom layer w/ the grey on it.
  • TrueType Font Printing Problems in Windows::
    Solution to: Problems Printing TrueType fonts in Microsoft Windows; Barcode MICR or OCR. Installation or printing problems may occur in Windows because of
    http://www.idautomation.com/kb/ttf-printing.html
    HOME
    Troubleshooting Printing Problems in Windows::
    This article describes how to troubleshoot printing problems in Windows. This determines whether there is a problem with the copying of files from the
    http://support.microsoft.com/kb/163551
    HOME


  • print_btn.onRelease = function(){
    {
    var pj = new PrintJob();
    var success = pj.start();
    if(success)
    {
    pj.addPage("text_mc.my_txt");
    pj.send();
    }
    delete pj;
    }
    }


    Please try to print and you will se rectangle below the text colored in background color of Flash movie.

    Be sure to put any color than white.

    I need just clear text with pictures without anything else.


  • mx04 version doesn't work for me either it comes up as 0kb


  • I didn't download your file cause I don't have f8 on this comp... but I did this example for DQS a couple months back.

    http://www.beyondthepixel.com/downloads/dqs/dqs_print/
    http://www.beyondthepixel.com/downloads/dqs/dqs_print/dqs_print.zip

    You can find some accurate documentation on it here:
    http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary628.html

    Hi Simplistik,



    Unfortunately old fashion printing (like this sample, printing particularly frame) style don’t fit to my project. Most of application is made dynamically so the text fields are.



    I use PrintJob Class.



    In attachment is MX2004 version, so when you will have time to look up…



    Thanks,


  • Ew... don't use scenes.

    By passing '0' to your target parameter, you are telling it print that level. Also, at compile time, I believe that scenes are, in fact, pretty much concatenated together on a large timeline. I'm not sure about this, so you may want to check.

    All I know is this: Macromedia sez - Don't yuse frames! :puzzle:


  • I am using the following code to print frame 21 in Scene 2 of my application. However, when the button is pressed, it reverts back to Scene 1 and prints frame 21 from that. How can I correct this???

    on (Release) {
    var pj = new PrintJob();
    var success = pj.start();
    if(success)
    {
    pj.addPage(0,{xMin:130, xMax:930, yMin:0, yMax:1100}, {printAsBitmap:false}, 21);
    pj.send();
    }
    delete pj;
    }

    Can someone please help......


  • mx04 version doesn't work for me either it comes up as 0kb

    sorry,

    my mistake. Now it's ok !


  • Oh... try...

    print_btn.onRelease = function(){
    {
    var pj = new PrintJob();
    var success = pj.start();
    if(success)
    {
    pj.addPage("text_mc.my_txt",{xMin:0,xMax:600,yMin:0,yMax:800}
    );
    pj.send();
    }
    delete pj;
    }
    }

    And just as a side note I haven't been wasting paper to print these :D :lol:


  • Remove your background color out of that MC (text_mc) and it won't print like that. Put it on a layer below your MC not inside the MC, and get rid of the border.

    Unfortunately it’s not background inside text_mc that makes problem. I’ve deleted layer with background inside text_mc, and still on printed page you can see rectangle below text.

    If I turn off border around text than there is big rectangle below text because text field is transparent then.
    I could avoid that transparency with use of background of text field before printing and turn it off after printing but, problem is that flash prints not only text field but also it print rectangle about 100px height and same width as text field.


  • Change your stage background to white not grey, and the grey box will disappear. If you still want your stage to look grey but not print grey... just make a bottom layer w/ the grey on it.

    Thanks simplistik for idea! :) Finally I manage to get clear text, although I’m mad on macromedia because of this bug that cost me a lot of nerves ;)

    Thanks.





  • Get Smart About Monitoring Virtual Machines
    Microsoft Gets Ex-Streamly Cozy with U.K.'s MediaWave

    You are looking at:nnkl.com's Printing problem !, click nnkl.com to home
  • got some funny movie scenes
  • how many people have overstuffed wallet
  • how can i tell if a 5 8ghz phone will work in the philippines
  • what is the best way to say it
  • funniest period story
  • should i work on the same muscles the day after a workout
  • how many hours a day do i have to study to be successful at a levels and how will i get motivated
  • what song did scott sing on xfactor
  • what are the top 10 ways to destroy the earth
  • more important to your metal
  • healthy weight please read 10 points for best answer easy points
  • what happened to hannah from x factor
  • which is the best brand for acoustic guitar
  •  
  • what did the mystic say to the hot dog vendor
  • why are all the strongest men in the world white
  • how much do you think that these models weigh
  • if all glaciers melted would the ocean know it had excess water and suck excess to abyss to evaporate at core
  • is something wrong with me or what
  • other bands as good as disturbed
  • what is the greenhouse effect
  • how to spell alhena in spanish
  • creatine monohydrate
  • easyyy 10 pointssssssssssssssssssssss
  • can u tell me a site to download free dvd quality movies not by part but as a whole
  • help making a superhero
  • whats in water ummm ya
  • why did it take scientists so long to discover the noble gases
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 nnkl.com        Site made:CFZ