Setting a format as default while printing

I have created a page format and assignred it to a format and assigned the format to the output dvice,while iam printing the printer iam getting as the default one which i have set but i am unable to set the format as the default one..as the printer has many formats to choose from.I can fix a printer as default  but i am unable to set a FORMAT as default on.help me in solving this.points will be rewarded

Ok. If you use transaction fbl1n, for example, then when you get the screen with the open and closed items of the selected vendor go to option Print (CTRL+P), or List -> Print. On the next screen choose your Output Device (for example, LOCL or PDF), then go to the tab Properties at the bottom of the screen. On the next screen under General attributes find Format and double click to it, then go to the field Format, press F4 or go to the possible selection, choose the desired Format, for example X_65_255, then go to the tab Settings at the bottom of the screen. On the next screen under Default for field select again your format (I think it will already be there) and then select tab Copy settings. At the end press Enter.
Best regards,
Dragan

Similar Messages

  • My HP Officejet Pro 8600 Plus prints emails as landscape only; how to set to A4 as default?

    All of a sudden my printer has set to landscape printing of emails; how to set it portrait as default for printing?

    Hi there @OB1214 , welcome to the forums
    I understand your emails are printing in landscape. If the issue is only when printing emails, there may be a setting within your email settings to change the print settings.
    If all of your programs are printing in landscape, check the print settings on your computer.
    Changing Print Settings in Mac OS X
    Changing Print Settings in Windows 7
    I hope that helps!
    If the problem continues, please let me know the details and also which OS you are running.
    Thank you
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Problem is occurring in docx format; it is not printing "New Line" character in extracted txt using IFilter (offfiltx.dll) while with doc file IFilter (OffFilt.dll) is working fine.

    Problem: Problem
    is occurring in docx format; it is not printing “New Line” character in extracted txt using IFilter (offfiltx.dll) while with doc file IFilter (OffFilt.dll) is working fine.
    Environment: -
    Operating
    System:
    Windows XP SP2/7
    Language:
    C#
    MS
    Office Version: - MS Office 2007/2010/2013
    Problem
    Description: -
    We
    havedocx
    file with new line character, and we are processing this file in IFilter for extracting text, and it is giving output with concatenation of lines.
    Docx
    file format (Sample.docx)
    Test this music
    Word processing
    Testing docx file
    Output:
    - Test this music Word processing Testing docx file
    Requirement:
    - We
    have requirement to get following text in particular format with New Line from docx because client is using docx format only.
    Test this music
    Word processing
    Testing docx file
    Attempt:
    We have tried a lot after changing IFilter configuration,
    but it is not giving required output. Then we saved same file in doc format (Sample.doc), which is giving required output.
    Because it is application specific problem, kindly
    assist to resolve issue on priority. We are sharing IFilter paths for extracting text for doc and docx.
    Doc Filter Location: - %systemroot%\system32\OffFilt.dll
    Docx Filter Location: - <Drive>:\PROGRA~1\COMMON~1\MICROS~1\Filters\offfiltx.dll
    Code Snippet for setting property of filter
    internal static IFilter LoadAndInitIFilter(string fileName, string extension)
                IFilter filter
    = LoadIFilter(extension);
                if (filter
    == null)
                    return null;
                IPersistFile persistFile
    = (filter as IPersistFile);
                if (persistFile
    != null)
    persistFile.Load(fileName, 0);
                    IFILTER_FLAGS flags;
                    IFILTER_INIT iflags
    =
                                IFILTER_INIT.CANON_HYPHENS
    |
                                IFILTER_INIT.CANON_PARAGRAPHS
    |
                                IFILTER_INIT.CANON_SPACES
    |
                                IFILTER_INIT.APPLY_INDEX_ATTRIBUTES
    |
                                IFILTER_INIT.HARD_LINE_BREAKS
    |
                                IFILTER_INIT.FILTER_OWNED_VALUE_OK;
                    if (filter.Init(iflags,
    0, IntPtr.Zero, out flags)
    ==IFilterReturnCode.S_OK)
                        return filter;
                Marshal.ReleaseComObject(filter);
                return null;
    Kindly
    assist to resolve this issue and also let us know if any input is required.
    For any help, we would be really
    thankful.

    Kindly
    assist to resolve this issue and also let us know if any input is required.
    For any help, we
    would be really thankful.

  • How do I set my Ricoh Aficio SP C220N to Default to print only Black and White?

    HI Guys can you help?
      How do I set my Ricoh Aficio SP C220N to Default to print only Black and White? When I check print Grey Scale box it uses the other colours to create the black instead of using the black toner cartridge. doing this from a PC works fine but not of a Mac and I am a newbie at this can you help as I don't want to waste any more colour ink unnecessarily.   

    Hi,
    Follow the steps below to print using Black Ink only:
    1. From the application used to print, click the File menu and select Print. The Print window appears.
    NOTE: The Print window might be minimized: Click the Show Details button to see all available settings.
    2. To access the color options, click the lowest selection box listed as the name of the program (e.g. TextEdit)
    Will appear as Copies & Pages within Microsoft Office applications.
    3. Select Paper Type/Quality from the drop-down menu.
    4. Click the triangle next to Color Options to expend the settings.
    5. Set the Color field as Grayscale.
    6. Set the Grayscale Mode as Black Ink Cartridge Only.
    You may save the settings for future use by clicking Presets > Save Current Settings as Preset...
    Any used preset will remain default so simply select teh standard preset to print in color.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Can you set Reader X's default Print orientation?

    Hello -
    We have a myriad of web docs provided in PDF form.  These are launched in a browser window using IE9 or 10.  These are various and sundry parts inventory lists and we are constantly calling them up to print, then dismising them until the next context based request.  IOW, the parts lists are not static, otherwise I'd tell everyone to just keep the one they get up on the screen.  They are produced by our corp HQ so we have no control over how they are authored.
    When these docs appear in the browser window, they are in landscape mode (or at least appear to the eye to be).  When we print however they're printing in portrait mode -UNLESS- you remember to select landscape in the print dialog window before you hit <OK>.  So, why don't we just remember to do that?  We're humans, I guess.  And the other thing is the authoring office completely disables all Reader menus, toolbars and other screen elements.  You do get a small bar area near the bottom with controls to zoom in/out and print, etc.  So I was trying to attack this by calling up Reader at the workstation level to see if I could adjust.
    I've looked extensively through Reader's excellent menu system trying to find a way to set Reader to always print landscape.  Of course, I can't find it.  Then it occurred to me that perhaps this is not a Reader issue and perhaps is a printer driver issue.  However, if we default the printer driver to landscape then we're facing the same problem with other applications that require printing like MS Word and so forth.  So that's not a real good option.
    So, let me ask then if Reader does or does not have a default setting that can be set and that can persist session to session?  Even if I did this once a day, it would be better than having to hear the 'Gosh darn it' arias all throughout the day!  How about a launch script or launch switch?  Anyone know of one?
    Thanks, all.
    H

    Document Properties > Advanced > Page Scaling = None.

  • Set a particular file to default to print markup

    http://forums.adobe.com/message/2397819 shows how I can print a file that has markup with the markup showing. However, I need to be able to give this file to non-sophisticated recipients and have it print with markup when *they* print it.  How do I set the file default to print with markup. It doesn't seem to be an option in File > Properties > Advanced > Print Dialog Presets.  Acrobat Pro 2009

    You may try using the Preflight Tool to "Flatten" the image. I don't know
    exactly the process behind the technology but it will flatten the annotation
    layer of the pdf to the main layer and the comments.
    Another alternative may be to print the pdf with the annotations selected
    (make sure in Preferences/Commenting the option is set to print notes and
    popups) and distribute the resulting file.

  • Set default custom print size

    Using Windows 7 with Adobe Reader X1.
    I need to repeatedly print documents (actually labels) using a Custom Scale of 43% (under File / Print / Page Sizing & Handling). Is there a way to set this as a default? A registry key perhaps? I've found the registry key which sets the Custom Scale option as default but I can't find anywhere to change percentage (which defaults to 100).
    Any help would be greatly appreciated.

    Hello fielblade,
    For the usage of this method, you could post a code sample request to:
    https://code.msdn.microsoft.com/site/requests
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Not getting Landscape format while printing the file.

    I am not getting Landscape format while printing the file. I am using the follwing code. Can anyone help me in this regard. its urgent.
    public void printText(){
    String outputPath="d:\\output\\";
    DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
    PrintRequestAttributeSet aaset = new HashPrintRequestAttributeSet();
    DocumentName docName = new DocumentName(outputPath+"outfile.ps", Locale.US);               
    PrintService pservices = PrintServiceLookup.lookupDefaultPrintService();// lookupPrintServices(flavor,aset);
    try {
    DocPrintJob pj = pservices.createPrintJob();
    InputStream file = new BufferedInputStream(new FileInputStream(outputPath+"outfile.ps"));
    Doc doc = new SimpleDoc(file,flavor,null);
    try {
         aaset.add(MediaSizeName.ISO_A4);
         aaset.add(OrientationRequested.LANDSCAPE);
         aaset.add(Sides.DUPLEX);
         pj.print(doc,aaset);
         } catch (PrintException e1) {
              e1.printStackTrace();
         } catch (FileNotFoundException e) {
         e.printStackTrace();
    }

    As a quick workaround... put the paper in the other way

  • Setting Paper Size while printing reports in character mode report

    Hi
    I am using developer suite 10g and am able to print the reports in char mode.
    but i have a small problem, i am unable to select the paper size while printing
    i select the parameters in a form and click on run report button
    this button helps me to get the data print directly
    but it takes the paper size as 12" height every time.
    where as my requirement is for difftent sizes. like 6", 9" height
    if i can select the size at runtime i can get my work done.
    can any one help me in this. its very urgent.
    Regrads
    Bhaskar

    HI, I My self writing , who created this question, as I got sucess in changing the font size.
    my dflt.prt in printer folder has the following,
    printer "dflt"
    height 46
    width 130
    after page control(L)
    return control(M)
    linefeed control(J)
    code "1" esc "G"
    code "2" esc "H"
    code "3" esc "4"
    code "4" esc "5"
    code "5" esc "W1"
    code "6" esc "W0"
    code "7" esc "C"
    code "8" control(O)
    code "9" control(R)
    I am able to increase the font size using code &5 and & 6 for the fileds or lables in report.
    But how to reduce the font size ???
    which code should I use in printer file. Our dot matrix printer is of type EPSON.

  • Blank pages while printing in BO6.5.1

    Post Author: Saravanan Perumal
    CA Forum: Desktop Intelligence Reporting
    Hi,
    I'm trying to create a Business objects report 6.5 with more tables and cells than will fit across one page. This results blank pages while printing, Is there any option to fit the cells and Tables into the first page that extended to the second page.
    Any one having the idea regarding kindly let me know.
    Thanks in advance!
    Br
    Saravanan.

    Hello,
    BLANKPAGES specifies whether to suppress blank pages when you print a report. Use this keyword when there are blank pages in your report output that you do not want to print.
    rwclient.exe server=<repserver_name> report=only_main.RDF userid=scott/tiger@orcl destype=file desformat=pdf BLANKPAGES=NO
    Another solution would be the use of srw.abort_program:
    If there is no data, the report is not run:
    SRW.PROGRAM_ABORT needs to be called from a format trigger and since any object within repeating frame ( based on main query) will not be formatted unless there is data, So need to have a "Boilerplate Text" outside of Frame and placed at "Main Section"-> "Body". This Text object will have Following format Trigger.
    begin
    if :data_yn ='Y' then
    null;
    else
    SRW.MESSAGE(100, 'No Data to run report ');
    raise SRW.PROGRAM_ABORT;
    end if;
    return (False);
    end;
    Here return (false) as do not want to print the text.
    data_yn is a user parameter variable, Not exposed to user or at Parameter Page.
    There is PL/SQL Filter Written at the Main Query at Data Modal as
    function G_EMPNOGroupFilter return boolean is
    begin
    Select 'Y' into :data_yn from dual;
    return (TRUE);
    end;
    This Helps in setting data_yn to Y is there is data returned by the underlying Query. by default this is Null.
    So when Report is executed by passing 2 as value to 'no', Query does not returns any row, So PL/SQL filter will not run and while formatting Blank report, format trigger of the "Text Object" will raise exception to abort report, thus no output.
    Similarly if there is data returned by Query then PL/SQL filer will set 'Y' to data_yn and "Text object" format trigger will not raise Exception.
    Regards,
    Alex

  • How to default the print options to the excel output

    Hi,
    We have a requirement to default the print options in the output of the report and the output is of excel type.
    Basically I need excel out put, which should be printed on Letter size paper and orientation should be landscape.
    For this I created a RTF template keeping orientation as landscape. I've loaded the xml data and see the output in excel. But the problem come when view print preview. By default it shows the preview in portrait orientation and scaling set to 'Adjust to 100% normal size'. Because of this my report is not getting printed in a single page. Manually If I change the orientation to landscape and scaling to 'Fit to 1 page(s) wide by 1 tall', the report prints properly. so how to default these properties while generating the output itself?
    Thanks,
    Vijay

    I got a work around for this. Instead of using RTF template, I used Microsoft Excel itself as template and did the formatting in excel.
    thanks,
    Vijay

  • 1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk? 2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?

    FYI....boot from SAN is required for physical server (T4-1) (not OVM).
    1) How to Boot from SAN for T4-1 Server with Solaris 11.1 OS on the disk?
    The SAN disks allocated are visible in ok prompt. below is the output.
    (0) ok show—disks
    a) /pci@400/pci@2/pci@0/pci@f/pci@0/usb@0, 2/hub@2/hub@3/storage@2/disk
    b) /pci@400/pci@2/pci@0/pci€a/SUNW, ezalxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk
    d) /pci@400/pci@2/pci@0/pci@8/SUNW, emlxs@0, l/fp@0, 0/disk
    e) /pci@400/pci@2/pci@0/pci@8/SUNW,enlxs@0/fp@0,0/disk
    f) /pci@400/pci@2/pci@0/pci@4/scsi@0/disk
    g) /pci@400/pci@1/pci@0/pci@4/scsi@0/disk
    h) /iscsi—hba/disk
    q) NO SELECTION
    valid choice: a. . .h, q to quit c
    /pci@400/pci@2/pci@0/pci@a/SUNW, ealxs@0/fp@0, 0/disk has been selected.
    Type “Y ( Control—Y ) to insert it in the command line.
    e.g. ok nvalias mydev “Y
    for creating devalias mydev for /pci@400/pci@2/pci@0/pci@a/SUNW,emlxs@0/fp@0,0/disk
    (0) ok set—sfs—boot
    set—sfs—boot ?
    We tried selecting a disk and applying sfs-boot at ok prompt.
    Can you please help me providing detailed pre-requesites/steps/procedure to implement this and to start boot from SAN.
    2) How to SMI Label/Format a disk while OS Installation in Solaris 11.1?
    As we know that ZFS is the default filesystem in Solaris 11.
    We have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.
    I have seen the solution that using format -e, we change the labelling but all the data will be lost, whats the way to apply a SMI Label/Format on a rpool disks while OS Installation itself.
    Please provide me the steps to SMI Label a disk while installaing Solaris 11.1 OS.

    Oracle recommends below things on rpool: (thats reason wanted to apply SMI Label)
    I have seen in the Oracle documentation that for rpool below are recommended:
    - A disk that is intended for a ZFS root pool must be created with an SMI label, not an EFI label.
    - Create root pools with slices by using the s* identifier.
    - ZFS applies an EFI label when you create a storage pool with whole disks.
    - In general, you should create a disk slice with the bulk of disk space in slice 0.

  • How to set QuickTime export setting to 1080p as default? Thank you! ;-)

    HI there,
    I was wondering how to set the export settings to 1080p when exporting a video (after trimming for instance)...
    It is set to "Movie" by default, I'm not to sure what resolution or data rate "Movie" format is (identical to original file)... since according to apple the other export options are:
    Thanks.

    Cool, so would it be the same if I save the file as "Movie" or "1080p" once I've trimmed the original file?
    No, the 1080p option would re-compress the file as a 1080p H.264/AAC file. This means the compression format may be chaged from its original compression format and that the quality MAY be reduced due to the process of recompression. Basically, it all depends on what the original compression format, settings, and quality were like to begin with. If the original data was in a low compression editing format, then recompressing the data to H.264/AAC should produce a much smaller file with little or no loss in visual quality while recompressing a high compression format may produce little or now change in the file size but noticeably reduce the visual quality. Since "quality" is a highly subjective term, you should really be running your own tests to see which output you prefer rather than asking for opinions from others here.
    Also, my question was if I could change the default export settings:
    Depends on what you mean by "change" the default settings. The Apple H.264 presets are context adaptive in nature. They are, within certain limits, self-adjusting depending on the video content being transcoded and the specific preset selected. For instance, small target dispay dimensions will produce lower average data rates which means the final file will be smaller but you cannot manually change the frame rate, set key frame frequency, set a/v data rate limits, create custom anamorphic encodes, manually set the profile/level combination, set the entropy mode, etc.

  • Applet crashes in MAC OS X 10.7.4 with JRE 1.7.0_07 while printing

    Our appplication uses the java applet to print the application data to default printer. We recommended our consumer to install latest jre (1.7.0_07) to run applet from our site.
    Since then we are facing issues in MAC OS X 10.7.3 and above. The applet crashes and throws following error in MAC console. There was no error in application or java console.
    We uninstalled java 1.7.0.0_07 and restore the apple recommended java 1.6.0_35. After that the applet works fine(java 1.6.0_35) to print the applciation data in MAC OS X 10.7.4.
    The browser pops up with error message says "Error While Printing"
    Application Specific Information:
    objc[2508]: garbage collection is OFF
    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.'
    *** First throw call stack:
         0 CoreFoundation 0x00007fff8a835f56 __exceptionPreprocess + 198
         1 libobjc.A.dylib 0x00007fff90651d5e objc_exception_throw + 43
         2 CoreFoundation 0x00007fff8a835d8a +[NSException raise:format:arguments:] + 106
         3 CoreFoundation 0x00007fff8a835d14 +[NSException raise:format:] + 116
         4 AppKit 0x00007fff9577547f -[NSPrintSpoolingGraphicsContext endDocument] + 177
         5 AppKit 0x00007fff95775795 -[NSPrintSpoolingGraphicsContext dealloc] + 42
         6 libobjc.A.dylib 0x00007fff9064a03c ZN12GLOBAL__N_119AutoreleasePoolPage3popEPv + 434
         7 CoreFoundation 0x00007fff8a7c3915 _CFAutoreleasePoolPop + 37
         8 liblwawt.dylib 0x000000010c74b8db Java_sun_lwawt_macosx_CPrinterJob_printLoop + 165
         9 ??? 0x000000010312af90 0x0 + 4346523536
         10 ??? 0x000000010311f450 0x0 + 4346475600
         11 ??? 0x000000010311f158 0x0 + 4346474840
         12 ??? 0x000000010311f158 0x0 + 4346474840
    Are there any issues with MAC 10.7.3 and above with applet running in jre 1.7.0_07 to print the data to printer?

    Step one is to ensure that you have a bootable backup/clone or a verified Time Machine backup of 10.7.3.
    Step two is to manually download and install the 10.7.3 COMBO update.
    Step three, if these are successful, is to manually download and install the 10.7.4 COMBO update, repair permissions, and restart.
    These should fix the problem with the installer. As for the games, i've not a clue since I don't run any on my computers.

  • Problem with computing Font width while printing in Landscape mode

    I have an application which prints a table and fills it with some text. I render it on a JComponent using the drawString(theStr, xPos, yPos) and the drawLine(rigtX, topY, rigtX, botY) methods in Graphics2D object. I want to take print-out of the table and also store the image of the table in, say, jpeg format. The print can be in Landscape or Portrait format depending on the size of the JComponent, which the user sets depending on the table size and the font size.
    I have a paintTable( ) method which contains all the drawString( ) and drawLine( ) methods. This method is called from the paint( ) method of the JComponent to achieve normal rendering. The same method is called to get a BufferedImage of the Table. The same method is further called from the implementation of print( ) method from the Printable interface.
    In the paintTable( ) method, I compute the pixel coordinates of the table grid lines and the texts positions in the tables depending on the font width and height obtained as shown below:
            // Set the Font             
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize); // TableFontSize is an int of value 8,9,10 etc.
            graphics.setFont(theFont);
            // Get the Font Size      
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
           System.out.println("FONT WIDTH HEIGHT [" + width + "," + height + "] ");I am getting the following value of width and height when the above print statement is executed with a value of 9 for TableFontSize. FONT WIDTH HEIGHT [18.0,11.3203125]
    The problem I face is :
    While Printing in Landscape mode the value of the 'width' variable printed as given above is becoming negative. Kindly see the values: FONT WIDTH HEIGHT [-9.37793,11.3203125]. This is happening ONLY DURING PRINTING IN LANDSCAPE MODE. This makes my calculation of table grid line coordinates and text positions completely wrong and the table goes out of place.
    Kindly note that, there is no problem during normal rendering and BuffereredImage creation and also while printing in Portrait mode. The problem happens irrespective of Linux or Windows. The value of 'height' is always correct.
    Kindly let me know: If the method I use to get the 'width' and 'height' is correct ? Is there any better way which will work fine in all platforms under all circumstances.
    Kindly help me to sort out this issue.
    Thanks a lot in advance and best regards
    -acj123

    I have extracted the relevent code and made a stand alone program.
    The complete code is enclosed; including that for printing.
    Kindly go through the same and help me to solve this problem.
    Thanks again and regards
    -acj123
    import java.awt.*;
    import java.util.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.awt.print.PrinterJob;
    import java.awt.font.FontRenderContext;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    public class MyCanvas extends JComponent implements Printable, ActionListener
        int TableFontSize = 9;
        private Graphics2D graphics;
        public MyCanvas(JFrame frame)
            frame.getContentPane().setLayout(new BorderLayout());
            frame.getContentPane().add(this, BorderLayout.CENTER);
            frame.setJMenuBar(createMenuBar());
        public JMenuBar createMenuBar()
            JMenuBar menubar = new JMenuBar();
            JButton printButton = new JButton("Print");
            menubar.add(printButton);
            printButton.addActionListener(this);
            JButton imageButton = new JButton("Image");
            menubar.add(imageButton);
            imageButton.addActionListener(this);
            JButton drawButton = new JButton("Draw");
            menubar.add(drawButton);
            drawButton.addActionListener(this);
            JButton closeButton = new JButton("Close");
            menubar.add(closeButton);
            closeButton.addActionListener(this);
            return menubar;
        public void actionPerformed(ActionEvent evt)
            String source = evt.getActionCommand();
            if  (source.equals("Close"))
                System.exit(0);
            if  (source.equals("Image"))
                getImage();
                return;
            if  (source.equals("Print"))
                printCanvas();
                return;
            if  (source.equals("Draw"))
                repaint();
                return;
        public BufferedImage getImage()
            Dimension dim = getSize();
            BufferedImage image = (BufferedImage)createImage(dim.width, dim.height);
            this.graphics = (Graphics2D)image.createGraphics();
            System.out.print("\nImage ");
            paintCanvas();
            return image;
        public void paint(Graphics graph)
            this.graphics = (Graphics2D)graph;
            System.out.print("\nDraw  ");
            paintCanvas();
        public void paintCanvas()
            // Set the Font      
            Font theFont = graphics.getFont();
            theFont = theFont.deriveFont((float)TableFontSize);
            graphics.setFont(theFont);  
            // Get the Font Size       
            FontRenderContext frc = graphics.getFontRenderContext();
            float width = ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).width;
            float height= ((Rectangle2D.Float)theFont.getMaxCharBounds(frc)).height;
            System.out.print("FONT WIDTH HEIGHT [" + width + ", " + height + "] ");
            System.out.print(" SIZE "+ super.getWidth() +", "+ super.getHeight());
        public int print(Graphics graph, PageFormat pageFormat, int pageIndex)
            throws PrinterException
            if (pageIndex > 0) return Printable.NO_SUCH_PAGE;
            this.graphics = (Graphics2D)graph;
            graphics.translate(0,0);
            paintCanvas();
            return Printable.PAGE_EXISTS;
         *  Interface method for Printing the Canvas on Paper
        public void printCanvas()
            PrinterJob printJob =  PrinterJob.getPrinterJob();
            printJob.setPrintable(this);
            PrintRequestAttributeSet attr = new HashPrintRequestAttributeSet();
            if (super.getWidth() < super.getHeight())
                System.out.print("\nPrint PORTRAIT ");
                attr.add(OrientationRequested.PORTRAIT);
            else
                System.out.print("\nPrint LANDSCAPE ");
                attr.add(OrientationRequested.LANDSCAPE);
            Dimension dim = getSize();
            attr.add(new MediaPrintableArea(1, 1, dim.width, dim.height,
                                                  MediaPrintableArea.MM));
            attr.add(new JobName("MyCanvas", Locale.ENGLISH));
            attr.add(new RequestingUserName("acj123", Locale.ENGLISH));
            if (printJob.printDialog(attr))
                try
                    printJob.print(attr);
                catch(PrinterException ex)
                    ex.printStackTrace();
        public static void main(String[] arg)
            JFrame frame = new JFrame("MyFrame");
            MyCanvas canvas = new MyCanvas(frame);
            frame.setSize(800, 600);
            frame.setVisible(true);
    }

Maybe you are looking for

  • Problem editing altoghther, cant play footage

    When I try to playback a FCP piece of footage I get "One or more frames were dropped during playback." This happens every half second it only gets through a 4 or 5 frames before it stops on account of this error. But it also gives me this as well "In

  • Payments for Sub Accounts

    So I just recently created a sub account for one of the lines on my plan. It hasn't happened yet but what happens if the owner of the sub account misses a payment?

  • IOS: Unable to update or restore

    ois 7 has stalled on phone , have tried restalling and restoring and get error message 21 unable to restore, have followed advice and turned off antivirus and firewal but still cant get past it

  • Outlook crashes with reassign a task

    hi, i have an issue on my outlook 2013 with reassign tasks. When done, Outlook will go down and crash. Views are lost, and some settings. I deleted mail profile, pst  file, disable add-in... windows 7 32 bits, office 2013 with Exchange Server 2010 (i

  • How do i adjust veritcal range on each channel of the 5105

    I'm using a 5105 to capture 4 analog signals and 4 control signals that are at different levels.  Is it possible to configure the 5105 for different vertical ranges on each of the 8 channels? Thanks