Where's the Java Print Preview Option?

I've tested v13 for a few weeks now, and the only apparent problem I'm having surrounds the pdf printer. We have Adobe Pro-9 installed on our clients.
When selecting Print Preview or Advanced Print, I can't get past the "Contract Manager pdf Printer" error.
Previous versions provided a configuration option between Java and pdf... where'd that option go? I can't seem to locate it.
Thanks in advance...

There is no option anymore for Java printing vs ActiveX vs anything else. PDF printing is the only choice. What is the exact error message? Log in to the CM13 web server as the account used to start the service and verify the CM PDF Printer is available. If not, I believe you can install the PDF printer directly from the amyuni folder on the CD, then you may need to rename the printer to Contract Manager PDF Printer.

Similar Messages

  • How can I print a whole email document and not a "screen shot" like I get in the Print Preview option.

    How can I print a whole email document and not a "screen shot" like I get in the Print Preview option. I'd like to print from "file" and print" like I can on other browsers (IE, for example). When I try to print from Firefox it grabs all my info (file folders, etc.) from the left side of the page. I need just the email information, not the entire screen information. Thank you!
    -Bruce

    I agree; I should, but I can't :) I have an orange Firefox drop down that I go to to print, and it allows me to select "print", "print preview" and "print setup", where I can change the margins. It always defaults to a full screen shot (I use Yahoo) and does not show just the email. I don't need to print what is on the left side of the screen or anything other than the email (I can achieve these things by using file-print from IE, so I know it is doable, and I am still going into Yahoo and using their email when I do it).
    Hope this helps. I'm not a fan of IE, but I really don't like the print properties I'm getting here (I'm a long time Mozilla user, but I'm losing too much info with this option and can't afford that anymore).
    Thanks for the help!
    -Bruce

  • The old version of firefox had print preview option - how can i do this in the latest firefox update?

    My old version of firefox had a little red firefox tab (top, left) with a pulldown menu offering print option,
    then a secondary menu offering print preview option. How can I access the print preview function in
    the latest version of firefox?

    When you use the new "3-bar" menu button, where you see the Print icon, that actually opens Print Preview. You can use Customize to move that to the main toolbar if you like.
    I created a map showing where the old menu items moved in the new menu. maybe it will be useful? http://www.jeffersonscher.com/res/menu/comp.php

  • Please restore the Print Preview option.

    Please restore the Print Preview option; no one wants to waste ink and paper if something isn't set right. Generating a pdf is not an acceptable substitute.

    Normally, when you choose Print in a Mac application, you get a Print Dialog Box which has "Preview" as an option. ID uses its own dialog box, but if you click "Printer" you can get to the standard Mac one. But if you then click the Preview button, you  get an error message, "Preview not supported". What normally happens is that Preview launches and you see a version of what will print, which is very useful if you don't know where the page breaks will be in the doc you want to print and don't want to print unnecessary pages. I use it all the time for things like pdf's of airline reservations made by saving the airline web page to pdf. Not sure I'd use it much in ID but I agree that the "not supported" message is a bit weird. One of the good things about Macs is consistency across applications. Why violate it?

  • Where can i see the final print preview for a rfq document./ ??

    Hello,
    where can i see the final print preview for a rfq document./ ??

    check the output type of that RFQ.
    and check in ME9a.
    Regards
    Prabhu

  • Print preview option for Check printing (Tcode-fbz5)

    Can any one tell me from where i can see the print preview option with out giving the check print every time.

    Hi,
    In the Output Control block in FBZ5, check the Test printout Option, An overview list will be generated, click on that, it will take you to spool requese, there when u click on the document under Type, u can see the preview..
    But the spool request created should be deleted manually if you dont want to take the printout, if you want the printout u can print it from the spool itself..
    Hope you get it..
    Regards,
    Pradhiba

  • Hi - I'm looking for a Print Preview Option for Firefox 12.0 for a Mac? I've found a link for a icon add-on, but it says its not support for my version.

    What's the best way to get the Print Preview Option for Firefox 12.0?
    Many thanks,

    Hi, is this the add-on that does not supported from your os ?
    https://addons.mozilla.org/eN-US/firefox/addon/printprint-preview/?src=search
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • My Free Java Print Preview Class

    Ok, for 2 weeks now ive been in agony trying to program a
    print preview for a program im writing for work.
    Alot, of the free print previews online are way complicated
    and crazy and hard to implement.
    Either that, or these forums and "how tos" online never
    answered the question or were to general or hard
    to follow for a beginner.
    I even posted a $40 question on google answers on how to
    do this and never got an answer.
    If ive had this problem others must have also
    so to save them the trouble i went through, here is a good
    starting point.
    I just finished this class.
    All you have to do is pass it a JPanel (or i guess any component
    with a " .paint(Graphics g) " ).
    new PrintPreview( component );all you might have to change is JInternalFrame to JFrame which is
    easy. also, the fit to page doesnt work yet but thats easy to code.
    please, i encourage comments and polite criticism.
    im just starting out so i know this isnt perfect but i posted
    it with good intentions.
    Hope it helps out some out there.
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.lang.Math.*;
    import java.awt.image.*;
    public class PrintPreview extends JInternalFrame implements ActionListener{
    public PrintPreview(Component pc){
         super("Print Preview", true, true, true, true);
         PC = pc;
    // buttons
         pf1 = new JRadioButton("Portrait");
            pf1.setActionCommand("1");
            pf1.setSelected(true);
            pf2 = new JRadioButton("Landscape");
            pf2.setActionCommand("2");
            pf.add(pf1);
            pf.add(pf2);
            pf1.setBackground(Pref.tbgc);
            pf2.setBackground(Pref.tbgc);
            cp.setBackground(Pref.tbgc);
         preview.addActionListener(this);
            print.addActionListener(this);
    // set
         pp.setPreferredSize(new Dimension(460, 460));
         pp.setBorder(BorderFactory.createLineBorder (Color.black, 2));
         pp.setBackground(Pref.tbgc);
         hold.setPreferredSize(new Dimension(200, 280));
         hold.setBorder(BorderFactory.createLineBorder (Color.black, 2));
         hold.setBackground(Pref.tbgc);
    // make main panel
         mp.setBackground(Pref.tbgc);
         GridBagLayout gridbag = new GridBagLayout();
         GridBagConstraints constraints = new GridBagConstraints();
         mp.setLayout(gridbag);
    // make hold panel
         GridBagLayout g1 = new GridBagLayout();
         GridBagConstraints c1 = new GridBagConstraints();
         hold.setLayout(g1);
    // DELETE
         PF.setOrientation(PF.PORTRAIT);
    // GUI
    // hold
         c1.insets.top = 5;
         c1.insets.left = 45;
         c1.insets.right = 5;
         buildConstraints(c1, 0, 2, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(pf1, c1);
         hold.add(pf1);
         c1.insets.top = 2;
         buildConstraints(c1, 0, 4, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(pf2, c1);
         hold.add(pf2);
         c1.insets.left = 5;
         c1.insets.right = 0;
         c1.insets.top = 25;
         buildConstraints(c1, 0, 6, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(xsl, c1);
         hold.add(xsl);
         c1.insets.left = 0;
         c1.insets.right = 5;
         buildConstraints(c1, 1, 6, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(xs, c1);
         hold.add(xs);
         c1.insets.left = 5;
         c1.insets.right = 0;
         c1.insets.top = 5;
         buildConstraints(c1, 0, 8, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(ysl, c1);
         hold.add(ysl);
         c1.insets.left = 0;
         c1.insets.right = 5;
         buildConstraints(c1, 1, 8, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(ys, c1);
         hold.add(ys);
         c1.insets.left = 25;
         c1.insets.right = 5;
         buildConstraints(c1, 0, 10, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(cp, c1);
         hold.add(cp);
         c1.insets.left = 35;
         c1.insets.right = 35;
         c1.insets.top = 20;
         buildConstraints(c1, 0, 12, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(ftp, c1);
         hold.add(ftp);
         c1.insets.left = 35;
         c1.insets.right = 35;
         c1.insets.top = 25;
         buildConstraints(c1, 0, 14, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(preview, c1);
         hold.add(preview);
         c1.insets.bottom = 15;
         c1.insets.top = 5;
         buildConstraints(c1, 0, 16, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(print, c1);
         hold.add(print);
         constraints.insets.top = 10;
         constraints.insets.left = 10;
         constraints.insets.bottom = 10;
         buildConstraints(constraints, 0, 2, 1, 1, 1, 1);
         constraints.fill = GridBagConstraints.NONE;
         gridbag.setConstraints(hold, constraints);
         mp.add(hold);
         constraints.insets.right = 10;
         buildConstraints(constraints, 1, 2, 1, 1, 1, 1);
         constraints.fill = GridBagConstraints.NONE;
         gridbag.setConstraints(pp, constraints);
         mp.add(pp);
    // display
         this.setContentPane(mp);
         this.setVisible(true);
         this.setResizable(false);
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         setSize(720, 520);
            Dimension windowSize = getSize();
         setLocation(Math.max(0,(screenSize.width -windowSize.width)/2),
            (Math.max(0,(screenSize.height-windowSize.height)/2)));
            DESKTOP.desktop.add(this);
            try {
         this.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
    public void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy){
         gbc.gridx = gx;
         gbc.gridy = gy;
         gbc.gridwidth = gw;
         gbc.gridheight = gh;
         gbc.weightx = wx;
         gbc.weighty = wy;
    public class PreviewPage extends JPanel{
    public PreviewPage(){
    public void paint(Graphics g){
         super.paint(g);
         Graphics2D g2 = (Graphics2D)g;
    // PORTRAIT
         if(PF.getOrientation() == PF.PORTRAIT){
         g.setColor(Color.black);
         g.drawRect(60, 10, 340, 440);
         int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
         int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
         int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
         int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
         g.setColor(Color.red);
         g.drawRect(x1+60, y1+10, l1, h1);
         setScales();
         int x2 = (int)Math.rint( 1028 / XSC );
         int y2 = (int)Math.rint( 768 / YSC );
         Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
         PC.paint( image.getGraphics() );
         g.drawImage(image, x1+60, y1+10, l1, h1, this);
    // LANDSCAPE
         if(PF.getOrientation() == PF.LANDSCAPE){
         g.setColor(Color.black);
         g.drawRect(10, 60, 440, 340);
         int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
         int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
         int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
         int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
         g.setColor(Color.red);
         g.drawRect(x1+10, y1+60, l1, h1);
         setScales();
         int x2 = (int)Math.rint( 1028 / XSC );
         int y2 = (int)Math.rint( 768 / YSC );
         Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
         PC.paint( image.getGraphics() );
         g.drawImage(image, x1+10, y1+60, l1, h1, this);
    public void actionPerformed(ActionEvent e){
    // fit to page
         if(e.getSource() == ftp){
    // preview
         if(e.getSource() == preview){
         setProperties();
    // print
         if(e.getSource() == print){
         doPrint();
    public void setProperties(){
         if(pf1.isSelected() == true){
         PF.setOrientation(PF.PORTRAIT);
         if(pf2.isSelected() == true){
         PF.setOrientation(PF.LANDSCAPE);
         setScales();
         pp.repaint();
    public void setScales(){
         try{
         XSC = Double.parseDouble( xs.getText() );
         } catch (NumberFormatException e) { }
         try{
         YSC = Double.parseDouble( ys.getText() );
         } catch (NumberFormatException e) { }
    public void doPrint(){
         PrintThis();
    public void PrintThis(){
         PrinterJob printerJob = PrinterJob.getPrinterJob();
         Book book = new Book();
         book.append( new PrintPage(), PF );
         printerJob.setPageable(book);
         boolean doPrint = printerJob.printDialog();
         if (doPrint) {
         try {
         printerJob.print();
         } catch (PrinterException exception) {
         System.err.println("Printing error: " + exception);
    public class PrintPage implements Printable{
    public int print(Graphics g, PageFormat format, int pageIndex) {
         Graphics2D g2D = (Graphics2D) g;
         g2D.translate(format.getImageableX (), format.getImageableY ());
         disableDoubleBuffering(mp);
         System.out.println("get i x " + format.getImageableX ());
         System.out.println("get i x " + format.getImageableY ());
         System.out.println("getx: " + format.getImageableWidth() );
         System.out.println("getx: " + format.getImageableHeight() );
         // scale to fill the page
         double dw = format.getImageableWidth();
         double dh = format.getImageableHeight();
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         setScales();
         double xScale = dw / (1028/XSC);
         double yScale = dh / (768/YSC);
         double scale = Math.min(xScale,yScale);
         System.out.println("" + scale);
         g2D.scale( xScale, yScale);
         ((JPanel)PC).paint(g);
         enableDoubleBuffering(mp);
         return Printable.PAGE_EXISTS;
    public void disableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(false);
    public void enableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(true);
         Component PC;
         PageFormat PF = new PageFormat();
         double XSC = 1;
         double YSC = 1;
    // gui comp
         JPanel mp = new JPanel();
         JPanel hold = new JPanel();
         JPanel pp = new PreviewPage();
         ButtonGroup pf = new ButtonGroup();
         JRadioButton pf1;
         JRadioButton pf2;
         JLabel xsl = new JLabel("X Scale:", JLabel.LEFT);
         JTextField xs = new JTextField("1");
         JLabel ysl = new JLabel("Y Scale:", JLabel.LEFT);
         JTextField ys = new JTextField("1");
         JButton ftp = new JButton("Fit to Page");
         JCheckBox cp = new JCheckBox("Constrain Proportions");
         JButton preview = new JButton("PREVIEW");
         JButton print = new JButton("PRINT");
    }

    Ok, for 2 weeks now ive been in agony trying to program a
    print preview for a program im writing for work.
    Alot, of the free print previews online are way complicated
    and crazy and hard to implement.
    Either that, or these forums and "how tos" online never
    answered the question or were to general or hard
    to follow for a beginner.
    I even posted a $40 question on google answers on how to
    do this and never got an answer.
    If ive had this problem others must have also
    so to save them the trouble i went through, here is a good
    starting point.
    I just finished this class.
    All you have to do is pass it a JPanel (or i guess any component
    with a " .paint(Graphics g) " ).
    new PrintPreview( component );all you might have to change is JInternalFrame to JFrame which is
    easy. also, the fit to page doesnt work yet but thats easy to code.
    please, i encourage comments and polite criticism.
    im just starting out so i know this isnt perfect but i posted
    it with good intentions.
    Hope it helps out some out there.
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.lang.Math.*;
    import java.awt.image.*;
    public class PrintPreview extends JInternalFrame implements ActionListener{
    public PrintPreview(Component pc){
         super("Print Preview", true, true, true, true);
         PC = pc;
    // buttons
         pf1 = new JRadioButton("Portrait");
            pf1.setActionCommand("1");
            pf1.setSelected(true);
            pf2 = new JRadioButton("Landscape");
            pf2.setActionCommand("2");
            pf.add(pf1);
            pf.add(pf2);
            pf1.setBackground(Pref.tbgc);
            pf2.setBackground(Pref.tbgc);
            cp.setBackground(Pref.tbgc);
         preview.addActionListener(this);
            print.addActionListener(this);
    // set
         pp.setPreferredSize(new Dimension(460, 460));
         pp.setBorder(BorderFactory.createLineBorder (Color.black, 2));
         pp.setBackground(Pref.tbgc);
         hold.setPreferredSize(new Dimension(200, 280));
         hold.setBorder(BorderFactory.createLineBorder (Color.black, 2));
         hold.setBackground(Pref.tbgc);
    // make main panel
         mp.setBackground(Pref.tbgc);
         GridBagLayout gridbag = new GridBagLayout();
         GridBagConstraints constraints = new GridBagConstraints();
         mp.setLayout(gridbag);
    // make hold panel
         GridBagLayout g1 = new GridBagLayout();
         GridBagConstraints c1 = new GridBagConstraints();
         hold.setLayout(g1);
    // DELETE
         PF.setOrientation(PF.PORTRAIT);
    // GUI
    // hold
         c1.insets.top = 5;
         c1.insets.left = 45;
         c1.insets.right = 5;
         buildConstraints(c1, 0, 2, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(pf1, c1);
         hold.add(pf1);
         c1.insets.top = 2;
         buildConstraints(c1, 0, 4, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(pf2, c1);
         hold.add(pf2);
         c1.insets.left = 5;
         c1.insets.right = 0;
         c1.insets.top = 25;
         buildConstraints(c1, 0, 6, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(xsl, c1);
         hold.add(xsl);
         c1.insets.left = 0;
         c1.insets.right = 5;
         buildConstraints(c1, 1, 6, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(xs, c1);
         hold.add(xs);
         c1.insets.left = 5;
         c1.insets.right = 0;
         c1.insets.top = 5;
         buildConstraints(c1, 0, 8, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(ysl, c1);
         hold.add(ysl);
         c1.insets.left = 0;
         c1.insets.right = 5;
         buildConstraints(c1, 1, 8, 1, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(ys, c1);
         hold.add(ys);
         c1.insets.left = 25;
         c1.insets.right = 5;
         buildConstraints(c1, 0, 10, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(cp, c1);
         hold.add(cp);
         c1.insets.left = 35;
         c1.insets.right = 35;
         c1.insets.top = 20;
         buildConstraints(c1, 0, 12, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(ftp, c1);
         hold.add(ftp);
         c1.insets.left = 35;
         c1.insets.right = 35;
         c1.insets.top = 25;
         buildConstraints(c1, 0, 14, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(preview, c1);
         hold.add(preview);
         c1.insets.bottom = 15;
         c1.insets.top = 5;
         buildConstraints(c1, 0, 16, 2, 1, 1, 1);
         c1.fill = GridBagConstraints.BOTH;
         g1.setConstraints(print, c1);
         hold.add(print);
         constraints.insets.top = 10;
         constraints.insets.left = 10;
         constraints.insets.bottom = 10;
         buildConstraints(constraints, 0, 2, 1, 1, 1, 1);
         constraints.fill = GridBagConstraints.NONE;
         gridbag.setConstraints(hold, constraints);
         mp.add(hold);
         constraints.insets.right = 10;
         buildConstraints(constraints, 1, 2, 1, 1, 1, 1);
         constraints.fill = GridBagConstraints.NONE;
         gridbag.setConstraints(pp, constraints);
         mp.add(pp);
    // display
         this.setContentPane(mp);
         this.setVisible(true);
         this.setResizable(false);
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         setSize(720, 520);
            Dimension windowSize = getSize();
         setLocation(Math.max(0,(screenSize.width -windowSize.width)/2),
            (Math.max(0,(screenSize.height-windowSize.height)/2)));
            DESKTOP.desktop.add(this);
            try {
         this.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
    public void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy){
         gbc.gridx = gx;
         gbc.gridy = gy;
         gbc.gridwidth = gw;
         gbc.gridheight = gh;
         gbc.weightx = wx;
         gbc.weighty = wy;
    public class PreviewPage extends JPanel{
    public PreviewPage(){
    public void paint(Graphics g){
         super.paint(g);
         Graphics2D g2 = (Graphics2D)g;
    // PORTRAIT
         if(PF.getOrientation() == PF.PORTRAIT){
         g.setColor(Color.black);
         g.drawRect(60, 10, 340, 440);
         int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
         int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
         int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
         int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
         g.setColor(Color.red);
         g.drawRect(x1+60, y1+10, l1, h1);
         setScales();
         int x2 = (int)Math.rint( 1028 / XSC );
         int y2 = (int)Math.rint( 768 / YSC );
         Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
         PC.paint( image.getGraphics() );
         g.drawImage(image, x1+60, y1+10, l1, h1, this);
    // LANDSCAPE
         if(PF.getOrientation() == PF.LANDSCAPE){
         g.setColor(Color.black);
         g.drawRect(10, 60, 440, 340);
         int x1 = (int)Math.rint( ( (double)PF.getImageableX() / 72 ) * 40 );
         int y1 = (int)Math.rint( ( (double)PF.getImageableY() / 72 ) * 40 );
         int l1 = (int)Math.rint( ( (double)PF.getImageableWidth() / 72 ) * 40 );
         int h1 = (int)Math.rint( ( (double)PF.getImageableHeight() / 72 ) * 40 );
         g.setColor(Color.red);
         g.drawRect(x1+10, y1+60, l1, h1);
         setScales();
         int x2 = (int)Math.rint( 1028 / XSC );
         int y2 = (int)Math.rint( 768 / YSC );
         Image image = new BufferedImage( x2, y2, BufferedImage.TYPE_INT_ARGB);
         PC.paint( image.getGraphics() );
         g.drawImage(image, x1+10, y1+60, l1, h1, this);
    public void actionPerformed(ActionEvent e){
    // fit to page
         if(e.getSource() == ftp){
    // preview
         if(e.getSource() == preview){
         setProperties();
    // print
         if(e.getSource() == print){
         doPrint();
    public void setProperties(){
         if(pf1.isSelected() == true){
         PF.setOrientation(PF.PORTRAIT);
         if(pf2.isSelected() == true){
         PF.setOrientation(PF.LANDSCAPE);
         setScales();
         pp.repaint();
    public void setScales(){
         try{
         XSC = Double.parseDouble( xs.getText() );
         } catch (NumberFormatException e) { }
         try{
         YSC = Double.parseDouble( ys.getText() );
         } catch (NumberFormatException e) { }
    public void doPrint(){
         PrintThis();
    public void PrintThis(){
         PrinterJob printerJob = PrinterJob.getPrinterJob();
         Book book = new Book();
         book.append( new PrintPage(), PF );
         printerJob.setPageable(book);
         boolean doPrint = printerJob.printDialog();
         if (doPrint) {
         try {
         printerJob.print();
         } catch (PrinterException exception) {
         System.err.println("Printing error: " + exception);
    public class PrintPage implements Printable{
    public int print(Graphics g, PageFormat format, int pageIndex) {
         Graphics2D g2D = (Graphics2D) g;
         g2D.translate(format.getImageableX (), format.getImageableY ());
         disableDoubleBuffering(mp);
         System.out.println("get i x " + format.getImageableX ());
         System.out.println("get i x " + format.getImageableY ());
         System.out.println("getx: " + format.getImageableWidth() );
         System.out.println("getx: " + format.getImageableHeight() );
         // scale to fill the page
         double dw = format.getImageableWidth();
         double dh = format.getImageableHeight();
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
         setScales();
         double xScale = dw / (1028/XSC);
         double yScale = dh / (768/YSC);
         double scale = Math.min(xScale,yScale);
         System.out.println("" + scale);
         g2D.scale( xScale, yScale);
         ((JPanel)PC).paint(g);
         enableDoubleBuffering(mp);
         return Printable.PAGE_EXISTS;
    public void disableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(false);
    public void enableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(true);
         Component PC;
         PageFormat PF = new PageFormat();
         double XSC = 1;
         double YSC = 1;
    // gui comp
         JPanel mp = new JPanel();
         JPanel hold = new JPanel();
         JPanel pp = new PreviewPage();
         ButtonGroup pf = new ButtonGroup();
         JRadioButton pf1;
         JRadioButton pf2;
         JLabel xsl = new JLabel("X Scale:", JLabel.LEFT);
         JTextField xs = new JTextField("1");
         JLabel ysl = new JLabel("Y Scale:", JLabel.LEFT);
         JTextField ys = new JTextField("1");
         JButton ftp = new JButton("Fit to Page");
         JCheckBox cp = new JCheckBox("Constrain Proportions");
         JButton preview = new JButton("PREVIEW");
         JButton print = new JButton("PRINT");
    }

  • Print preview option for Payment/Receipt/Journal Voucher

    Hi Friends,
    Need Your help
    Can you please tell me ,from where can I get print preview of Payment/Receipt/Journal Voucher?
    Thanks in advance

    Hello,
    Go to FB12
    Give the company code.
    Give the correspondence type (preferably SAP09)
    Give the document number
    and Year.
    Then go to F.61
    Give correspondence type
    Company code.
    Execute
    In case if it is asking, give the device name (your local printer). It triggers a spool request.
    Now go to SP02. You can see your own spool requests.
    Double click on page icon.
    Click on print button.
    Hope this solves your problem.
    Regards,
    Ravi

  • Where is the Ask to Buy option in Family Sharing?

    Where is the Ask to Buy option for members in my Family Sharing?  I only see the Parent/Guardian option and the Allow member to see your Location option.  The articles I found indicate it should be located with the others.  Please help.

    Hello iboo24,
    Thanks for using Apple Support Communities.
    To learn more about how to use Ask to Buy with Family Sharing, please take a look at the information in the articles linked to below.
    Request and make purchases with Ask to Buy - Apple Support
    Get help using Ask to Buy in the iTunes Store - Apple Support
    Thanks for using the Apple Support Communities!
    Cheers,
    Alex H.

  • #'s are coming in the place of space in the PO Print preview

    Hi  All ,
    #'s are coming in the place of space in the PO print preview .I am creating the PO from SRM system . When I type item text manullay in SRM system # 's are coming in the place of space and When I copy & paste #'s are not coming in the po line item text . I am printing in the smartform from the field ekp0-txz01 . Could any one know how to solve the issue . Please let me know .
    I have searched the post in SDN and I have asked our basis team .Finally I am posting the issue in SDN .
    Original :  TEST DEFECT 6667777 KK
    Current :  TEST#DEFECT#6667777#KK
    Regards
    Srihari

    Hi,
    is a placeholder for non printable signs such as horizontal tabs and many others.
    Please check the hex content of the text in debug mode. There should be no spaces there.
    Regards,
    Klaus

  • Where is the "do not restore" option?

    Where is the "do not restore" option? I read a review somewhere that said it actually works in ML - but where is it? I can't find it in System Prefs.

    It's disguised as "Close windows when quitting an application" on the General tab of System Preferences.

  • Where is the "Manage Pre-Orders" option?

    Where is the "Manage Pre-Orders" option?

    OK, so only if you have Pre-Orders you will see the option. I thought I have some but I guess I don't.
    Thanks.

  • My numbers program created on my mac version 3.0 won't work on my ipad version 2.0. It says I have to save the file with preview option but there is no such option in preferences. Any thoughts?

    my spreadsheet created with numbers program version 3.0 created on my mac won't work on my ipad version 2.0. It says I have to save the file with preview option but there is no such option in preferences. Any thoughts?

    For the update to run Aperture must be installed in the system Application folder and named simply Aperture, not Aperture3.2.2 or anything else.
    I don't know if this would also affect photo stream but if your Aperture is misnamed or installed in an incorrect location fixing that to see if it clears up the problem would be a good first step.

  • I have an iMac, where are the completed print jobs stored on the iMac and what format are they?

    I have an iMac,  where are the completed print jobs stored on the iMac and what format are they?
    My OSX is 10.10.1

    Hi
    If you are using standard system or HP drivers, than the jobs contents are not saved at all.
    You can see the list of completed jobs per printer via this URL: http://127.0.0.1:631/printers/
    If you want to save a print job, you can do it in the print dialog, by selecting an action prom "PDF" popup.
    It allows to save a job (prior or instead to printing it) as PDF or PostScript.

Maybe you are looking for

  • How to use the updated value in the same update statement

    Hello, I just wonder how to use the updated new value of other column in the same udpate statement. I am using Oracle 11.2, and want to update the two columns with one update statement as following: create table tb_test (id number(5), tot number(5),

  • How to enable purchasing tab in BOM, while defining bom for a item

    dear gurus, while defining a bom for a item, there ae various tabs like main, effectivity, OM etc. among that purchasing tab is in disabled state. how to enable that. pls provide setup and whats actual use of that. waiting fr reply.

  • Connect to a different database at runtme???

    I have 4 tables in a databese and I want to connect them and view them at runtime in a dbgrid, depending on wich table you choose to view in a combobox

  • ADDT file upload

    Hi people I'm making a document upload site for mainly pdf files with php and mysql and i'm using the developer toolbox file upload. I got it all to work except one thing - international charachters in the file names. I need to convert the signs to h

  • Too hot on the keyboard surface

    after 2 to 3 month of using presario CQ42 - 177TX, my notebook in HOT CONDITION after being opened for 5 to 6 hour.... is it normal??