Easy Print graphics properties

Hi,
We're running a single 2012 R2 session host through a 2012 RTM RDG / RDWeb / RDCB. Clients are all Win7 SP1 running RDP 8.1.
The issue is that graphics are poor quality when printing through Easy Print. I can see by testing with CutePDF locally on the TS versus redirected that the raster graphics have JPG compression artefacts. The client is not happy with this.
I know that Easy Print renders to XPS and sends the XPS over the RDP channel to the client. I can see that in printing defaults for "Microsoft XPS Document Writer" you can choose between JPEG high, medium or low compression, or PNG lossless. I've
set MXDW defaults to PNG. No effect.
I've examined the driver properties and found some files I can edit in notepad. I've hunted through and got quite hopeful when I located "C:\Windows\System32\DriverStore\FileRepository\prnms001.inf_amd64_4fa1863520b2418e\MXDW.gpd" and edited
the default option for ImageType to "PNG". THis had no effect.
I know exactly what's happening and I can't figure out how to configure it. Please can someone tell me how to make Easy Print use PNG compression instead of JPG for raster graphics.

Hi Dharmesh,
Thanks for posting links, but I don't think you have understood my issue.
I will restate my issue as precisely as I can:
When printing documents containing raster graphics using Easy Print, the graphics are JPG compressed. This results in poor quality. This has been isolated to the easy print mechanism. *I require to disable lossy compression when printing through Easy Print.*
I'm sure this SHOULD be possible, as the rendering mechanism on the server is to XPS for transport over the RDP channel, and the MXDW allows you to select lossless compression. I just can't figure out how to do it.
Thanks if you are able to assist.

Similar Messages

  • Remote Desktop Services Printer Redirection with easy print not working as Desired

    Hi,
     I have a Terminal Server Farm with a number of Windows Server 2008 R2 Remote Desktop Session Host Servers in the Environment. There is also a RD Gateway server which is used to connect to the RD Session host servers in the environment. We
    had configure the policy "Use Terminal Services easy Print Driver First" for all the RD Session Host servers. Everything was working well untill a couple of users Complaint about slow printing on Easy Print. While trying to troubleshoot the issue we came
    to know that when we by-pass the RD Gatewat and make a Direct connection to the RD Session Host Servers we are able to Print Really fast using Easy Print. Only When we use the RD gateway server we get the problem with the Printing.
     As we could not get through this problem and we are not in a condition to by-pass RD Gateway for connections we decided to put the TS Easy print Driver as a Second option. We went ahead and identified the 3 printers for which printing was slow. we
    Installed the Drivers for the same printers on all the Terminal Server and Disabled the policy "Use Termianl Server Easy print Driver First". After this we were able to print fast on the 3 printers having Slow printing issues. All the other Printers were using
    Easy print.
    After a day we realised that there were more than 20 drivers for Different printers installed in the Print Server Properties. We started getting viered problems with the Printing on all the Terminal servers like, Print Spooler Service Crashing, Hanging,
    Users not able to redirect printers at all. To avoid this we Removed the Driver Packages but they came back the very next day.
     I am not sure what could be causing this kind of behavior. I would really appriciate if someone can help he with these two problems
    1) Easy print Working Slow only when using RD Gateway Server
    2) Printer Drivers Getting installed on Terminal Servers when Easy Print Policy is disabled.

    1) Easy print Working Slow only when using RD Gateway Server
    > Difficult to track down especially through forum. Looking for some known issues/hotfixes
    954743 FIX: After you apply hotfix 954744, printing performance may be significantly slower when you print documents by using Terminal Services Easy Print
    http://support.microsoft.com/?id=954743  
    The Remote Desktop Easy Print (RD Easy Print or TS Easy Print) uses the XPS print driver that ships with .NET Framework.
    2) Printer Drivers Getting installed on Terminal Servers when Easy Print Policy is disabled.
    > If Easy print is not the first driver then it installs the driver if they are InBox drivers
    > If these are non-inbox drivers - This is because administrators are RDPing to the server from another PC with several printer/drivers installed.
    When they RDP with printer redirection enabled, the drivers get automatically installed.
    To avoid this, either turn off printer redirection at server level from RDP-TCP properties - might not be feasible if users need redirected printers
    Else make sure that when admins RDP, printer redirection is turned off so that drivers are not automatically installed
    This was a major issue in 2k3, i havent tested it in 2k8 though
    This behavior is related to the change you made in Easy print driver behavior
    Sumesh P - Microsoft Online Community Support

  • Printing graphics in Adobe forms

    Hi,
    I have a requirement in adobe forms where I need to print graphics stored as standard text (SO10) or on document server (SE78) by calling them inside a long text.
    The client was doing this in legacy with SAP script and it was working fine but adobe form does not support this feature (as far as I know)
    Is there any way we can print graphics by calling them inside long text?
    Any inputs will be appreciated.
    Regards.

    Hi,
    To print the graphic from SE78 in Adobe form you need to do the following steps.
    1. Convert the graphic into graphic_content(XSTRING) using
    call method cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    2. Create Graphic node in Context in Adobe form with the properties
    Grphic type as graphic content
    Field as graphic_content(XSTRING)
    MIME type as 'BMP'
    3. In layout create an image field and bind it to graphic node created in context.
    Regards,
    Raju.

  • HP EliteBook 2730p Intel Graphic Properties Missing

    I don't have the (Intel Graphic Properties & Options) in the context menu. I am guessing it is essential, because I can not increase or decrease my brightness at all.
    Please point me in the right direction on where to download the right files.
    Thank you.
    This question was solved.
    View Solution.

    Hi,
    Welcome back. Please try the first or the second one of the following link:
        https://downloadcenter.intel.com/SearchResult.aspx​?lang=&ProductID=3711&ProdId=3711
    Hardware id of my machine (Elitebook 2740p), hope same one:
    PCI\VEN_8086&DEV_0046&SUBSYS_7007103C&REV_12
    PCI\VEN_8086&DEV_0046&SUBSYS_7007103C
    PCI\VEN_8086&DEV_0046&CC_030000
    PCI\VEN_8086&DEV_0046&CC_0300
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Report headers not included in "easy print vi panel or documentation"

    I am using the easy print vi panel or documentation function from the report generation toolkit.  I've wired in a cluster constant into the layout options terminal.  I selected include headers and turned on page number and date printed from the boolean options.  The headers are included when I run the program in labview but when I try to build an executable it prints without the header.
    I included the dynamic VI's that the toolkit suggested when I built the file but I'm still seeing this issue.

    Hi Linkster,
    Looking at that example VI, it seems
    that outputting the name, path, and date is relatively easy compared to
    the page number. It does not seem that there is a VI that outputs the
    number of pages, and VI property nodes only seem to have the ability to
    set the header to contain the page number. There is a property node
    that gives the size of your front panel and block diagram, but you may
    have to relate that information to number of pages on your own.
    Regards,Stephen S.
    National Instruments
    Applications Engineering

  • Layout option doesn't work in Easy Print VI panel, controls on tabs don't appear

    Found two problems with the Report Generation VIs:
    1) In the (Report Generation) Easy Print VI Panel or Documentation.vi, the Layout options don't work (dug down into the sub-VI's and found that they are not connected to anything).
    2) If you have controls or indicators on a Tab Control, and try to use the Easy Print VI Panel or Documentation.vi with the option to include controls in the report, they don't appear. The only controls/indicators that do appear are the ones that are displayed on all of the tabs (ie, create an control and move it on top of the tab control so that it appears on every page).  There is a sub-VI (Expand_control_ref_with_nested_controls.vi) that is called to handle nested controls (ie, clusters, arrays,etc...) but it should have a case to handle tab controls.
    Solved!
    Go to Solution.

    Hey Sajosie,
    Digging into the Sub-VI's you are correct in saying that the Layout Options user input is not connected to anything for most cases. However, In the default case of "Quick Print" the Layout Options are used to modify the layout of the report. In the help for this VI, it mentions that this input is ignored for "Standard Reports" and "HTML" report options. However, it does not mention that this ignoring of the Layout Options is expected for "Word" or "Excel" reports.
    In terms of including controls and indicators in the report that appear on tab controls, I can make a product suggestion to make this sort of front panel design more compatible with the Easy Print VI Panel or Documentation.
    Hope this helps.
    -Ben
    WaterlooLabs

  • I cannot get my HP officejet 4215 all-in-one to print graphics

    how do i get my HP officejet 4215 all-in-one to print graphics. as an example if i print my visa statement the visa logo and bank logos don,t print

    bamajim,
    Here is a link to a page for your printer that may help with your issue.
    The document provides steps to troubleshoot printouts that do not match the screen while printing from the web.
    Does this also happen when printing graphics from somewhere other than the web ?
    Once you give these steps a try let us know what happens.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • URGENT.PLEASE HELP!!!Print graphics problem

    Hi,
    Please help me in this one.I try to print Graphics but I can't.
    1) Spooling lasts too long
    2) After spooling , printing does not continue
    3) An empty page is printed instead
    4) Printing process takes about 60 Mbytes of RAM to perform (??!!!)
    Here is my code :
    class MyDrawings extends JPanel implements Printable
    private Image offImage;
    private Graphics2D offGraphics2D;
    private init_graphics()
    offImage = this.createImage ( 200,200 );
    offGraphics2D = (Graphics2D)offImage.getGraphics();
    public void paint(Graphics g)
    Graphics2D g2 = (Graphics2D)g;
    if (offGraphics2D == null) return;
    // Paint the backgroung
    offGraphics2D.setColor(Color.black)
    offGraphics2D.fillRect(0,0,getWidth(),getHeight());
    g2.drawImage(offImage,0,0,null);
    void jButton3_actionPerformed(ActionEvent e) // 'Print' Button was pressed
    PrinterJob pj = PrinterJob.getPrinterJob();
    RepaintManager.currentManager(this).setDoubleBufferingEnabled(false);
    if (pj.printDialog())
    try
    pj.setPrintable(this);
    pj.print();
    catch (Exception PrintException) {PrintException.printStackTrace();}
    RepaintManager.currentManager(this).setDoubleBufferingEnabled(true);
    public int print(Graphics g, PageFormat pf, int pageIndex)
    if (pageIndex != 0 )
    return NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D) g;
    double wscale = pf.getImageableWidth() / this.getWidth();
    double hscale = pf.getImageableHeight()/ this.getHeight();
    g2.scale(wscale, hscale);
    g2.translate(pf.getImageableX(), pf.getImageableY());
    paint(g2);
    return PAGE_EXISTS;
    I use JDK 1.4.0 and Win2000.
    Thank you so much for your help!

    Change the construnctor and the paint as follow
    class MyDrawings extends JPanel implements Printable
         private Image      offImage;
         private Graphics2D offGraphics2D;
    private MyDrawings()
    public void paint(Graphics g)
         Graphics2D g2 = (Graphics2D)g;
         if (offImage == null)
              offImage      = this.createImage(getWidth(),getHeight());
              offGraphics2D = (Graphics2D)offImage.getGraphics();
         offGraphics2D.setColor(Color.black);
         offGraphics2D.fillRect(0,0,getWidth(),getHeight());
         g2.drawImage(offImage,0,0,null);
    void jButton3_actionPerformed(ActionEvent e) // 'Print' Button was pressed
    .

  • Easy Print VI panel not working with 64-bit windows vista

    We have a significantly sized application developed in Labview 8.2.1 that is designed to work on a standalone computer. This application uses "Easy Print VI Panel" to print report pages which are basically front panels of various VIs. The application also prints some report pages using the "Print Report" module. Typically we use the application builder and use the generated installer to install the application on a target computer. We also include the appropriate Run-Time engine and NI VISA 4.1. The applications works exactly as designed on all versions of 32-bit Windows (ME, XP, Vista). Now, when this application was installed on a machine running Windows Vista 64-bit, attempts to print reports resulted in a lot of blank pages. I noticed that the report pages that are based on the "Easy Print VI Panel" module were blank whereas the ones that are based on the "Print Report" module were not blank.
    To further troubleshoot, I created a very small application. The only function of this application is to use the "Easy Print VI Panel" to print the front panel of another VI that I bundled inside the application. I observed the same behavior.  
    From what I can tell, either:
    1. "Easy Print VI Panel" with Labview 8.2.1 is not compatible with Windows Vista 64-bit
    2. The Labview Run-Time Engine 8.2.1 has some incompatibility with Windows Vista 64-bit (I have not tried to install the full development system on the 64-bit Vista computer)
    Any insights as to what may be causing this? or does anyone know of a fix for this issue. I am attaching the latter simple test code to the post.
    Thanks
    Attachments:
    test_print.vi ‏18 KB

    Sorry Sam, I couldn't get my hands on a 64-bit Vista machine to tinker with your VI. I got a little obsessed with trying to get ahold of a computer to test it out on, that I overlooked actually taking the time to think about the problem. But, now that I'm thinking about it, which operating system did you build this application on? Sometimes an application that was built in another OS than it's running on will have problems caused by the differences in the OS. I'd like to try building the application in 64-bit Vista and deploying it to another 64-bit Vista machine, but unfortunately, I can't test this out myself. My gut feeling is that the application is acting up because it wasn't built in 64-bit Vista, not because the Easy Print VI or the 8.2.1 Run-Time Engine themselves are incompatible with 64-bit Vista. If you can, please test out that theory. That will definitely help determine if it's truly a bug or not.
    Product Support Engineer
    National Instruments

  • Printing graphics - URGENT!

    Hi all,
    I am trying to send a Java2D graphics to a printer. I am reading the file name from JFileChooser. Here is my code:
         if(jfc.getFileFilter().getDescription() == psFileFilterDescription){
              File psfile=new File(jfc.getCurrentDirectory(),jfc.getSelectedFile().getName() + ".ps");
              FileOutputStream out = new FileOutputStream(psfile);
              int w=getSize().width;
              int h=getSize().height;
              System.out.print("Writing PS File "+psfile+"\nw:"+w+" h:"+h);
              BufferedImage mImage=new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
              Graphics2D gBuff=mImage.createGraphics();
              paint(gBuff);
         sendToPrinter(mImage);
    private void sendToPrinter(BufferedImage bImage){
    PrinterJob pj = PrinterJob.getPrinterJob();
    // show the print dialog and conditionally proceed
    // with printing if the dialog returns true
    if (pj.printDialog()) {
    // get the default page format
    PageFormat pf = pj.defaultPage();
    // show the page configuration dialog
    // note - this doesn't work in Solaris/JDK1.2beta4
    pj.pageDialog(pf);
    // create a book
    Book b = new Book();
    b.append((Printable)bImage, pf);//How can I convert a BufferedImage to support Printable interface
    // arrange for this book to be the source for our printer job
    pj.setPageable(b);
    // actually invoke the printing
    try {
    pj.print();
    catch (PrinterException ex) {
    ex.printStackTrace(System.err);
    // provide a print method for this component. This implements
    // the Printable interface,
    public int print(Graphics g, PageFormat form, int page) {
    // check for a Graphics2D and apply the page orientation and
    // printable area transforms to it
    if(page == 0) {
    if (g instanceof Graphics2D) {
    AffineTransform tr = new AffineTransform(form.getMatrix());
    tr.translate(form.getImageableX(), form.getImageableY());
    ((Graphics2D)g).transform(tr);
    super.paint(g);
    return PAGE_EXISTS;
    else
    return NO_SUCH_PAGE;
    Does anyone have any ideas on what I should do here?
    Thanks,
    Payam.

    i have a problem with this code.
    public void actionPerformed(ActionEvent e)
              if(e.getSource()==openItem)
                   JFileChooser chooser = new JFileChooser();
                   chooser.setCurrentDirectory(new File("."));
                   chooser.setFilefilter(new javax.swing.filechooser.FileFilter()
                   { public boolean accept(File f)
                        String name = f.getName().toLowerCase();
                        return name.endsWith(".gif")
                        ||name.endsWith(".jpg")
                        ||name.endsWith(".png")
                        ||f.isDirectory();
                   public String getDescription()
                        return "Image files";
              int r = chooser.showOpenDialog(this);
              if(r==JFileChooser.APPROVE_OPTION)
                   String name =chooser.getSelectedFile().getAbsolutePath();
                   panel.loadImage(name);
    all variables used have been allocated memory.

  • K550 won't print graphics - Help!

    Working great till one day suddenly stopped printing graphics.  Prints text copy fine.  Photos, clip art, etc missing from print.  Ran Diagnostics - okay; ran Configuration page - okay.   Laptop prints fine when connected to another printer,  which eliminated a 'computer' issue; definately a printer setting problem.   Help!!  I'm out of warranty :-(

    As near as I can tell, the printer is not the problem. I have tried three different printers, all with the most up-to-date drivers, and even tried Adobe Acrobat 9 Pro, which should bypass all of the above. The graphic elements that worked perfectly in my previous system simply disappear in Snow Leopard. My workaround is to send them to an "older" Mac NOT running Snow Leopard, then convert them to PDF files, then print from Snow Leopard, and all is well. Absolutely frosted! I have publishing deadlines to meet!

  • HT1338 Printing graphics

    Since updates installed on August 4, I am unable to print on my Epson Stylus PX730WD from files generated in Quark 10.2. When I try, any graphics come out corrupted or Quark crashes. I am able to print text only files and I am able to print from PDFs of the files but not from the originals.
    Quark are working on this but so far have found no solutions. I note that my 'About my Epson Stylus PX730WD' window shows the printer as 'Printer Proxy' version 9.4'. Do I, therefore, have a problem with my printer software, rather than a problem with Quark?

    Dear Matthias,
    Thank you for your continued interest. I am pleased to report that I believe the problem of printing graphics from Quark original files is now resolved.
    The trouble was with fonts. I was working with Extensis Suitcases Version 4 which apparently does not support Quark 10.2. When I upgraded to Suitcases Version 5 yesterday, all seemed to be in order.
    I hope that this information will be useful to you and to other customers who may have had similar experiences. Once again, my thanks for your time.
    Kind regards,
    Diana

  • SMARTFORMS printing graphics from URL

    I do not find anything yet to print graphics on SMARTFORM using variable name from a url NOT via SE78 Graphics Administration Document Server. 
    There is solution to load SE78 Document Server via BDC but I am looking for solution where Document Server is not loaded with excessive images AND NOT solution writing over a single image there; I want it actually redirected to another url address.
    I do understand that I will maintain a table having the url address AND that I can even display from SMARTFORM; I am asking for solution that actually prints the stored image.

    Dear Michael,
    good to see you..
    I am facing the same problem for using the image from URL in SMARTFORM...
    If you got solved the problem please give me the suggestions how you had done this....
    Please,....
    Thanks in advance,
    Kruthik

  • Printing graphics

    Hi when i try to print a printable with an image on it , it keeps rendering the page it comes 170 time into the paintroutine , its this possible to it in an other way???
    Greetings Sven

    Sure when i can the print routine below of the panel (= report to be printed) the paint routine is called twice when sending it to the printer but when adding an image to the panel and the print , the paint routine is called 170 times or more
    here is the printroutine called from the printpreview
    void printButton_actionPerformed(ActionEvent e) {
    try {
    PrinterJob prnJob = PrinterJob.getPrinterJob();
    PageFormat pf = prnJob.defaultPage();
    pf.setPaper(paper);
    if (jobType == PRINTABLE_JOB)
    prnJob.setPrintable(m_printable,pf);
    else
    prnJob.setPageable(m_pageable);
    setCursor( Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    if (prnJob.printDialog())
    prnJob.setJobName("Vrex Explorer printing");
    prnJob.print();
    setCursor( Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    dispose();
    catch (PrinterException ex)
    ex.printStackTrace();
    System.err.println("Printing error:");
    the printable is below
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException
    if (pageIndex >= m_maxNumPage)
    return Printable.NO_SUCH_PAGE;
    else
    Graphics2D g2 = (Graphics2D) g;
    // RepaintManager.currentManager(this).setDoubleBufferingEnabled(false);
    setDoubleBuffered(false);
    paint(g2);
    // RepaintManager.currentManager(this).setDoubleBufferingEnabled(true);
    setDoubleBuffered(true);
    System.gc();
    return Printable.PAGE_EXISTS;
    public void paint(Graphics2D g)
    paintBackground(g);
    private void paintBackground(Graphics2D g)
    g.setColor(new Color(210,212,215));
    int width = (int)pf.getImageableWidth();
    int height =(int) pf.getImageableHeight()-getPoints(0.5);
    int x = (int) pf.getImageableX();
    int y = (int) pf.getImageableY();
    // vertical shadowbalk
    g.fillRect(x,y,(int)width/2,height);
    g.setColor(new Color(15,40,70));
    g.fillRect(x,y+getPoints(1.5),width,getPoints(1.5));
    g.setFont(tfnt);
    int titelorigin = getPoints(0.5);
    fm = g.getFontMetrics(g.getFont());
    int h = fm.getHeight();
    g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
    g.setColor(new Color(103,127,156));
    g.drawString("DESIGN",x+titelorigin,y+getPoints(0.75)+(fm.getAscent()- fm.getDescent())/2);
    fm = g.getFontMetrics(g.getFont());
    h = fm.getHeight();
    g.setColor(new Color(166,169,175));
    g.drawString("OPPORTUNITIES",x+titelorigin,y+getPoints(2.25)+(fm.getAscent()- fm.getDescent())/2);
    g.setColor(new Color(255,255,255));
    g.setFont(t2fnt);
    fm = g.getFontMetrics(g.getFont());
    h = fm.getHeight();
    g.drawString("DFA",x+titelorigin+width/4,y+height- getPoints(0.5)- (fm.getAscent()- fm.getDescent())/2);
    try{
    System.out.println("imageheight"+imageheight);
    // g.drawImage(image,x+titelorigin,y+height -getPoints(0.5)-imageheight,imagewidth,imageheight,null);
    catch( Exception ex)
    with the g.drawimage ----->>> line enabled the paint is called 170 times
    the image is constructed in the constructor of the page
    like this
    try
    imagewidth = image.getWidth(this);
    imageheight = image.getHeight(this);
    MediaTracker mt = new MediaTracker(this);
    mt.addImage(image,0);
    mt.waitForID(0);
    catch (Exception e)
    e.printStackTrace();
    tia Sven

  • Printing graphics object in Landscape or portrait mode

    Hello,
    I have a graphics 2d object (a Tree Diagram) which is inside a JScrollPane,and the JSCrollPane is on a JPanel. it's length and width is more than one page. I am using a printable object to print the object. The task I need to do is,
    (1). compress the width and length of the diagram, so that if can fit into one page, else split the diagram into pages, so that each part of it can be printed on different pages(page size A4) and then later those pages can be merged accordingly.
    I am not able to find, how to split the graphic object(the tree diagram into pages), shoul d I try doing it using x and y co ordinate of the graphic object.

    * PrintUtilities.java
    * Created on January 17, 2007, 7:25 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package action.vector.bam;
    * @author serjith
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    /** A simple utility class that lets you very simply print
    * an arbitrary component. Just pass the component to the
    * PrintUtilities.printComponent. The component you want to
    * print doesn't need a print method and doesn't have to
    * implement any interface or do anything special at all.
    * <P>
    * If you are going to be printing many times, it is marginally more
    * efficient to first do the following:
    * <PRE>
    * PrintUtilities printHelper = new PrintUtilities(theComponent);
    * </PRE>
    * then later do printHelper.print(). But this is a very tiny
    * difference, so in most cases just do the simpler
    * PrintUtilities.printComponent(componentToBePrinted).
    * 7/99 Marty Hall, http://www.apl.jhu.edu/~hall/java/
    * May be freely used or adapted.
    public class PrintUtilities implements Printable {
    private Component componentToBePrinted;
    public static void printComponent(Component c) {
    new PrintUtilities(c).print();
    public PrintUtilities(Component componentToBePrinted) {
    this.componentToBePrinted = componentToBePrinted;
    public void print() {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    PrintRequestAttributeSet set = new HashPrintRequestAttributeSet();
    PageFormat pgFormat = printJob.pageDialog(set);
    printJob.setPrintable(this,pgFormat);
    //printJob.setPrintable(this);
    if (printJob.printDialog())
    try {
    printJob.print();
    } catch(PrinterException pe) {
    System.out.println("Error printing: " + pe);
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0) { // requires change since it is bigger than a single page
    return(NO_SUCH_PAGE);
    } else {
    Graphics2D g2d = (Graphics2D)g;
    g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    disableDoubleBuffering(componentToBePrinted);
    int W = componentToBePrinted.getWidth();
    int H = componentToBePrinted.getHeight();
    //Component newComp = componentToBePrinted.getGraphics().clipRect();
    System.out.println("WorkSpace Height "+H+" Width "+W);
    pageFormat.getHeight();
    pageFormat.getWidth();
    pageFormat.setOrientation(PageFormat.LANDSCAPE);
    //componentToBePrinted.paint(g2d);
    componentToBePrinted.printAll(g2d);//.paintAll(g2d);
    enableDoubleBuffering(componentToBePrinted);
    return(PAGE_EXISTS);
    /** The speed and quality of printing suffers dramatically if
    * any of the containers have double buffering turned on.
    * So this turns if off globally.
    * @see enableDoubleBuffering
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    /** Re-enables double buffering globally. */
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);
    =============================================================
    Please find this code, which I am trying to use, here I am passing the JPanel
    try{                   
    PrintUtilities.printComponent(actWorkSpace);
    }catch(Exception ex){
    ex.printStackTrace();
    the actWorkSpace is a JPanel with graphics as mentioned above, which is being passes to PrintUtilities.printComponent();
    the output is only just a single page with just a portion of the graphics on the JPanel, pls help...... it is urgent....

Maybe you are looking for

  • How can I upload .pdf file from Mac to iPhone or is there an app for that?

    How can I upload a .pdf file from my mac to iPhone 3G? Or is there an app that will allow me to that? Thanks in advance Zia

  • Verizon aircard a solution for desktops in rural area?

    OK, to begin with, I am nearly totally in the dark as far as aircards and Internet service via Verizon is concerned. Having said that, here's my situation: We have moved to a rural area here in Kentucky in which the only Internet service available is

  • Changing colors of individual bars in a XY Graph

    I am using an XY Graph (bar style) to display 50 voltages. I have limit settings (low alarm,low warning, high warning, high alarm)that I would like to impose on each of the 50 bars in the XY graph. My problem is that any way I try it the limits are o

  • Menu Bar at run time

    Dear All, I need to hide the following menu bar in oracle forms at run time Action Edit Query Block Record Field Window Help -----(It will Show at run Time) Below some icons,ie, Save,Print,Print Setup,Exit,etc How to do it?Please help me.. Thanks and

  • Error code -49, When Exporting.

    Hi Just built a Moving For NG  And Animal Planet  Well i hope it will be,  Fist I saved a few weeks ago a full HD All was OK. I edited the film as it was a bit long, But went to save and export it Full HD again, twice I got (-49)    The project could