Can we set Print Quality and Page 'Fit in to paper' thrue AS

Hi All,
while taking Movieclip printout thru actionscipt, whatever text i used inside the Movieclip is get blurred. Moreover the print is not fit into the paper size (A4 size used).
Is there any setting available to change resolution while its get convert to bitmap and also is there any option to set "fit in to the paper size"
Here i am using this...
import flash.display.BitmapData;
var newBitmap:BitmapData = new BitmapData(myMC._width, myMC._height);
var tempMC:MovieClip = this;
var printFC:PrintJob = new PrintJob();
newBitmap.draw(myMC);
tempMC.createEmptyMovieClip("printMC", 1);
printMC.attachBitmap(newBitmap, 1);
printFC.start();
printFC.addPage(printMC, null, {printAsBitmap:true});
printFC.send();

I found the solution form a website !!!
I missed out to mention the parameter while attaching bitmap.
The correct code is...
printMC.attachBitmap(newBitmap, 1, "auto", true);
"auto" is for pixelSnapping
true is for smoothing
Thanks,

Similar Messages

  • Set printer tray and page size

    hi every body
    i create two reports and i want to print these reports from different printer trays for excemple first report from (upper papaer tray) and second from (lower paper tray)i want all of this automaticaly user can not select tray at runtime print automaticaly goes to set tray by default
    second problum is i create report on legal size when i run report in runtime the page setup shows letter size
    how can i solve these problums
    thanks in advance
    allah hafiz

    Hi Faiz,
    There are 2 places where you need to worry about paper size in your report:
    1. When you design the report, you need to make sure that your report is designed according to the paper size that you would finally print on. For this, you first set Reports properties "width" and "height", and then design your report such that everything fits in this size. This has nothing to do with what physical paper size is chosen by the printer at runtime. This merely ensures that the report will be formatted according to the report width and height that you have set.
    If at runtime, your actual paper size in the printer is different (eg, you design according to legal, but you printer contains letter), you can use the property PAGESIZE in your command line to dynamically change the paper size in your report, and Reports will try to format your report accordingly. Again, this property PAGESIZE does not switch the physical paper in the printer. It only ensures that the report is formatted according to what you specify as width and height.
    2. You want to set the "physical" paper size that the report will finally print on. This is controlled by the printer. In reports, you can control which tray should be chosen, but you cannot control what physical paper size it should print on. This is controlled by the printer. Report will print on the paper size that is present in the relevant printer tray.
    Navneet.

  • Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don't know how  indesign can do this action.

    Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don’t know how  indesign can do this action.

    set the wake-on lan on the main computer
    The laptop's too far away from the router to be connected by ethernet. It's all wifi.
    No separate server app on the laptop, it's all samba
    The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
    I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
    Last edited by saft (2010-03-18 20:38:08)

  • Keep hp 6700 in good shape: automatic print quality diagnostic page every week?

    Hi all,
    I've recently bought the HP Officejet 6700 Premium, and I'm concerned about keeping it in good condition, since I had to replace my previous canon printer because of a stuck printhead (the photo black one, I didn't used it for a long time).
    Since I don't print much (but I'm using the ADF scanner a lot), and other family members prints sporadically, most of the time in black and white, I would like to setup an the printer to automatically print a diagnostic page every week to make sure everything is alright.
    Using eprint, IFTTT and google calendar I could automatically send a file to print (I already set up the printer to wake up a few minutes before the calendar event) with black and color bars (someone suggest to print the google homepage since it has many colors but uses little ink).
    Is there any chance I can directly print the print quality diagnostic page (so I can fully diagnose a problem if it occurs)?
    Thanks for the attention
    Cheers from Italy!
    This question was solved.
    View Solution.

    Hey,
    To clarify for you and answer your new questions on the printers self maintenance.
    The maintenance cycle occurs randomly. It will occur after any power up, after print jobs(not every one) and any time it "think's" printhead health is poor. As mentioned above the printer to does have to be powered on for this to occur.
    You can if you'd like still print off the odd test page just to check, once a month would be adaquet.
    If you want to be saving power and are turning it off, then you would want it to be at least powering on and running the automated service that occurs weekly.
    I hope this clarifies everything for you. Thanks for your posts.
    I worked on behalf of HP.

  • Print, Export and Page Navigation Buttons in the Report

    When I view a report through CR4E, the generated report has 3 buttons namely Print, Export and Page Navigation buttons. But when I click on either of the buttons I get a 'null pointer exception'. This is a critical error as I am unable to navigate past the first page. Do I have to add code to these buttons? If not, why am I getting an error? Kindly solve my problem as soon as possible.

    <p>Looking at your code it appears that you are storing the ReportSource in session prior to passing in the ResultSet. This will create a problem when a postback is made on  the viewer page (which all of the viewer actions do). If you look at the sample code which is generated when you use the JSP Page Wizard you will notice that the ResultSet is passed to the ReportClientDocument object prior to it being stored in session. Then, when the page is called again this object is retrieved and the ReportSource is used by the viewer. You can quickly run the test using one of our sample reports to see what I am talking about. The code below was generated using the Consolidated Balance Sheet.rpt and did not experience any problems doing any of the viewer actions.</p><%@page import="com.businessobjects.samples.JRCHelperSample,<br />com.crystaldecisions.report.web.viewer.CrystalReportViewer,<br />com.crystaldecisions.reports.sdk.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement"%><%<br /><br /><br />    try {<br /><br />        String reportName = "Sample Reports/Consolidated Balance Sheet.rpt";<br />        ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br />        if (clientDoc == null) {<br /><br />            clientDoc = new ReportClientDocument();<br />            <br />            // Open report<br />            clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br />  <br />            {<br />                // **** POPULATE MAIN REPORT ****<br />                {<br />                     // Connection Info for fetching the resultSet<br />                    String connectStr = "jdbc:derby:classpath:/Xtreme";<br />                    String driverName = "org.apache.derby.jdbc.EmbeddedDriver";<br />                    String userName = "dbuser";        // TODO: Fill in database user<br />                    String password = "dbpassword";    // TODO: Fill in valid password<br /><br />                    String query = "SELECT CUSTOMER_NAME FROM APP.CUSTOMER WHERE COUNTRY = &#39;Australia&#39;";<br /><br />                    <br />                    String tableAlias = "FINANCIALS";        // TODO: Change to correct table alias<br /><br />                     <br />                    JRCHelperSample.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),<br />                        tableAlias, "");<br />                }<br /><br /><br />            }<br />        <br />            // Store the report document in session<br />            session.setAttribute(reportName, clientDoc);<br /><br />        }<br /><br /><br />            {<br />                // Create the CrystalReportViewer object<br />                CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br />                //    set the reportsource property of the viewer<br />                IReportSource reportSource = clientDoc.getReportSource();                <br />                crystalReportPageViewer.setReportSource(reportSource);<br /><br />                // set viewer attributes<br />                crystalReportPageViewer.setOwnPage(true);<br />                crystalReportPageViewer.setOwnForm(true);<br /><br />                // Process the report<br />                crystalReportPageViewer.processHttpRequest(request, response, application, null); <br /><br />            }<br />            <br /><br />    } catch (ReportSDKExceptionBase e) {<br />        out.println(e);<br />    } <br />    <br />%><%!<br />// Simple utility function for obtaining result sets that will be pushed into the report.  <br />// This is just standard querying of a Java result set and does NOT involve any <br />// Crystal JRC SDK functions. <br /><br />    private static ResultSet fetchResultSet(String driverName,<br />            String connectStr, String userName, String password, String query) throws SQLException, ClassNotFoundException {<br /><br />        //Load JDBC driver for the database that will be queried    <br />        Class.forName(driverName);<br /><br />        Connection connection = DriverManager.getConnection(connectStr, userName, password);<br />        Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);<br /><br />        //Execute query and return result sets<br />        return statement.executeQuery(query);<br /><br />}%><p>Try using the code generated from the wizard to see if it works for you as well. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • Why can't I print a full page photo in Photoshop Elements 10???

    Why can't I print a FULL PAGE PHOTO IN PHOTOSHOP ELEMENTS VERSION 10, (letter size 8.5 x 11?)  I have tried resizing, cropping and anything else I can possibly think of to no avail!!! VERSION 7 was so easy just print (fit to page)! I'am pulling my hair out trying to accomplish this! If anyone can tell me how to do it I would be eternally grateful! Thanks Julie
    P.S. I can't even print a 8 x 10 properly!

    Sarah, my printer drivers are updated! This problem seems SO COMPLICATED when it should be so easy!  It's like the more advanced these programs get the less you can figure them out!!!!  I'am ready to offer a reward to fix this!!! The stress of trying to figure this out is making me crazy!
      From: saurabh288<mailto:[email protected]>
      To: JULIE HIGH<mailto:[email protected]>
      Sent: Thursday, February 14, 2013 11:10 PM
      Subject: Why can't I print a full page photo in Photoshop Elements 10???
            Re: Why can't I print a full page photo in Photoshop Elements 10???
            created by saurabh288<http://forums.adobe.com/people/saurabh288> in Photoshop Elements - View the full discussion<http://forums.adobe.com/message/5074854#5074854

  • How can i set a global error page for all error cod

    how can i set a global error page for all error code?
    i don't want to leave a long list in the web.xml file.could any one help me?
    thanks

    If u have a common Error JSP named as ErrorPage.jsp
    You need to have the following piece of code in the JSP as :
    <%@ page isErrorPage ="true"%>
    This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
    Thanks and regards,
    Pazhanikanthan. P

  • I can no longer print a web page. I get an error code 20 message

    I can no longer print a web page. When I do I get an error code 20, unspecified problem.

    Try a battery pull, wait a couple of minutes and pop it back in..

  • Can I set up a home page in safari

    How can I set up a home page in Safari on the iPad

    There isn't a home page capability in Safari but you can add an icon of a page URL to the Home screen. Touching this icon will start Safari and point it to that URL.

  • How can i set print mode at run time in smartforms???

    Hi expert,
    In smartforms how can I  set print mode at run time.
    I have one screen.In this screen one check box is there.If user select that check box then print should be come double side otherwise it is coming single side.
    If it is possible then plz give me answer asap.

    Hi,
    Set These settings
    While calling smartform, paas control_parameters and output_options as mentioned below and set
    user_settings = ' '.
    It will send the smartform output to spool.
    DATA: wa_output_options TYPE ssfcompop,
    wa_ctrl TYPE ssfctrlop.
    wa_output_options-tdimmed = 'X'.
    wa_output_options-tddelete = 'X'.
    wa_output_options-tdimmed = ' '.
    wa_output_options-tddest = 'LOCL'.
    wa_ctrl-no_dialog = 'X'.
    CALL FUNCTION lv_fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = wa_ctrl
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = wa_output_options
    user_settings = ' '
    x_adrp = x_adrp
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Kumar(Reward if helpful).

  • Can I set autoSubmit="true" and partial trigger in Application Def. Editor?

    Hello Expert,
    Can I set autoSubmit="true" and partial trigger or other properties through JHeadstart Application Definition Editor?
    If I have changed the layout or add item though the Def. Editor, I have to regenerate and the manually modification
    on jsff will be overridden. Any suggestion to solve this problem?
    So far I know the page generation can be disabled, however, what if I have to regenerate the definition but want
    to remain the manual modification in Jsff?
    Thanks
    Neon

    Neon,
    You can use the "Depends on Item" property in the application definition editor. You can set this property on an item, or an item region, region container.
    The items that is specified as depends on item, will get autoSubmit="true" and the dependent items of region will get partial triggers that listen to the depends on item.
    Even if you need settings you can't generate, there is no need to switch off generation of the entire page.
    We never do this, we always specify custom templates for the bits and pieces of the page that we want to customize.
    Have you read section 4.7 "Customizing Using Generator Templates" in JHeadstart Developer's Guide?
    Steven Davelaar,
    JHeadstart team.

  • Why can't i print a web page,

    why can't i print a web page, using windows vista 64, HP photosmart 8250?

    This software can help print from the web:
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c01812475&cc=us&dlc=en&lc=en&product=443024&tmp_​...
    This utility can help determine if things may not be setup correctly:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?cc=us&lc=en&jumpid=ex_r4155/hho/ipg/ccdoc/p​...
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • Why can't I print a web page from my Android 4.1 phone to my 8500a printer? e-print is working.

    Why can't I print a web page from my Samsung Android 4.1 to my Officejet Pro 8500A. eprint is working, so I can send e-mails to my e-print address, but when I try to print a web page, it says that I don't have a printer. Can someone help me with this? 
    This question was solved.
    View Solution.

    Just received an update to the Android version of HP ePrint.
    It now has the ability to print web pages!  Thanks HP!  
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Can I set a default home page when people use my router?

    Can I set a default home page when people use my router?
    Can I set it to my web site for example so that people have to go there when they connect?
    Thanks,
    Paul

    Hello EireReality. Welcome to the Apple Discussions!
    Can I set a default home page when people use my router?
    No, at least not that I'm aware of. Setting a "default home page" is typical feature of a web browser, not an Internet router.

  • How can I set up a default page in CS5-CC?

    How can I set up a default page in CS5-CC?

    Save or modify one of the presets here on Mac (windows similar location):
    HD\Users\(user name)\Library\Application Support\Adobe\Adobe Illustrator CS#\en_US\New Document Profiles
    When making a new document, choose the preset you saved.

Maybe you are looking for

  • JVM crashed with SIGSEGV

    Hello, We periodically get jvm crashes and don't understand what they related to. Can anybody help? # A fatal error has been detected by the Java Runtime Environment: # SIGSEGV (0xb) at pc=0x00007fdb7723e7eb, pid=2114, tid=1092127056 # JRE version: 6

  • How do i re-synch my iphone itune content up to my imac?

    The menu bar wont allow me..the action'synch PM's iphone' is grayed out

  • Contract - Sales Order - Production Order

    Hi all, i met an error regarding account assignment in sales order. i create sales order refer to contract, then my PP consultant wanna create Production order that refer to sales order, but an error appears. Error: Account assignment cannot be carri

  • Need to resequence the pages while Printing

    Hi, I have a PDF with 4 pages but while printing, I want to print them in the order of pages as 3, 4, 1 and 2. This is just an example. I even have a PDFs with 100 pages which has to print in the order of pages as 99, 100, 97, 98 and so on. Can anyon

  • Where can I get a copy mac os x 10.9?

    I have copies of most mac os systems going back to mac os 6.08.  I would like a copy of mac os 10.9.