In java How to set print .?

Hi Friends,
I m developing one desktop appllication and i add the print button.
But i don't about print in java.
so which API i use in java and how to set page and Data..?
any example then give me..?
i don't know print option in java so give me full detatil about Print..

http://www.google.ca/search?q=java+print+windows+&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
1st result

Similar Messages

  • How to set printer margins if using a lot of printers in virtual desktops which are deleted each time users logs off

    Hello,
    i am using Firefox version 31. I have a problem with page setup margins. I need to use left
    30mm; right 10mm; top 20mm; bottom 20mm. I am using VMware floating assignemnt linked clones
    virtual desktops. After users log off - machines are deleted and users next time logs on get's brand
    new VDI's. Users gets printers to VDI using login script from Active Directory.
    Option Explicit
    Dim strPrinterUNC, objNetwork
    strPrinterUNC = "\\some_server\printer_number_1"
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection strPrinterUNC
    WScript.Sleep (20000)
    objNetwork.SetDefaultPrinter strPrinterUNC
    Set objNetwork = Nothing
    Each user have different logon script, because they use different printers (different printer names e.g. \\some_server\printer_number_2 ; \\some_server\printer_number_3 and etc. Page setup margins in Internet Explorer are ok. But how to make Firefox page setup margins as i need? For other options i have
    used CCK2 Wizard 2.0.4 tool. It worked fine. Maybe i can put some information in C:\Program
    Files\Mozilla Firefox\defaults\pref\autoconfig.js I have some usefull data in it allready. I
    have found info that: "Setting print margins is done in the printer settings". I have a lot of
    printers, so i can not set printer margins individualy for each of them. Now mozilla shows top,
    bottom, right, left each 12.7 mm. What should i do if i have a lot of printers in enterprise
    environment?

    Firefox has a profile folder that has preferences to save this. But the config that would need to be changed is:
    print. save_print_settings = True - (default): Save the print settings after each print job
    Locking that preference: [http://kb.mozillazine.org/Locking_preferences]
    Or done manually:
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    Check these values accordingly and change them if necessary.

  • How to set print option for a Billing document using T-code VF02

    Hi All,
    Please suggest me the way to set print option for a Billing document for T-code VF02 and please let me know how to get print preview for any particular Billing document?
    regards
    Anand.

    Enter the billing documents detail
    Goto Goto> Header>Output.
    Check the status for your output type in this screen.
    If it is green then come back to the VF03 screen.Enter the billing document number.
    Click on Billing document-->Issue output to.
    Press (CtrlShiftF1) or click on the icon beside "Print options".
    Here you can see the print preview.
    If the status is red then click on the processing log.Here you will get the error messages.
    If the status is in yellow colour,then click on the "Further Data" button
    Set "Dispatch time" as "4 Send immediately (when saving the application)"
    Before the print preview option you should make sure you have added correct output type to the relevant billing document. To do that, go to transaction VF02.
    Enter the billing document no
    Go to Menu option -> Go to -> Header -> Output
    In that screen you have to add relevant output type. (Standard output type is RD00)
    Add that & press enter key
    Highlight that line & press "Further Data" button
    Set "Dispatch time" as "4 Send immediately (when saving the application)"
    Press "Back" Button
    again select that line & go to "Communication method" button
    Set "Logical destination" as LOCAL"
    Don't mark "Print immediately" & "Release after output" ticks. If you mark them, sa soon as you save the billing document, you'll get a print out.
    Press "Back" Button
    Save
    Now form the initial "Change Billing Document" screen, Go to Menu option; Billing Document -> Issue Output to
    You can see that output type line appear.
    select that line & press "Print Preview" button or (CTRLSHIFTF1)
    You can see the print preview.
    Alternatively you can use VF31 to print multiple print outs at same time.
    If you want to get PDF outputs of billing documents, go to your printer settings in the your computer from Control Panel.
    Set PDF Writer as "Default Printer" (Right click & select "Set as Default Printer")
    Then normal way, print the billing from SAP.
    It'll automatically send to your PDF writer. You can save it to the path you want,

  • Hi All,How to set printer configuration for sap4.7 IDES version for home pr

    Hi All,
              Pls provide the information How to set the configuration for our home printer from the sap 4.7 IDES version .If possible pls provide with screen shots
    thanks & regards.
    bharat

    check SPAD (tcode) to installl Printer and all formats.
    Regards
    Prabhu

  • How to set print scale in Safari 3.1.2?

    When I try to print a web page in Safari, the printer page shows "Scale: 62%" every time. I can manually change it, but I'd prefer the default to be: Scale 100%. It would be a real time saver. I can't figure out how to set a default Scale %. Thanks in advance for an assist.

    No, I'm not printing the same page. I rarely do. However, I visit various web sites and make PDFs or print items of interest. This is part of my work and it would be a huge time saver to be able to set a default scale to 100%. That scale fills the page and it uses more pages, but the type size when using 62% is often too tiny to be useful when it is printed or saved as a PDF file.

  • How to set printer options when direct printing from Linux AS Sevr.?

    We have a problem like this: Our app server is a 10g R2. We want to DIRECTLY print reports to a HP LaserJet 1320 PCL 6 which is attached to a Windows print server.
    We can print the reports from the Oracle Forms (we use reports builder to create a PDF in a directory and then using HOST command we print it).
    The command we use is lp -d LaserJet sicl_rcpdebtnt_5.pdfProblem is the printout comes with the top 10% of the page not printed. i.e. the printing starts from about 10% of the PDF. The header and top information is not printed.
    We tried the scaling option: lp -o scaling=75 -d LaserJet sicl_rcpdebtnt_5.pdfBut that also has no effect.
    What can we do to print the entire PDF in ONE page. When we open the PDF in Windows and prints it we have to say Fit to printer margins for the printer's page scaling property.
    How to set this in command line Linux???

    Since you are not printing directly from Reports (destype=printer) this is not really a Reports issue I guess. Maybe you should ask this in a Linux forum.
    However:
    we have to say Fit to printer margins looks to me that there is a mismatch between your Report design and paper format. Check page size and margins in Reports Builder.

  • Hi, how to set printer to alv grid, please check my code

    Hi,
    Iam giving my code, please observe...
    DEFAULT PRINTER NAME "A909".
    NOW IAM SETTING OT "LP01".
    GS_PRINT-PRINT = 'X'.
    P_PRINTR = 'LP01'.
    CALL FUNCTION 'UPDATE_DEFAULT_PRINTPARAMS'
    EXPORTING
    USER = SY-UNAME
    DESTINATION = P_PRINTR
    IMMEDIATELY = ' '
    RELEASE = 'X'
    NEW_LIST_ID = 'X'.
    SY-BATCH = 'X'
    CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK = G_CONSISTENCY_CHECK
    I_STRUCTURE_NAME = 'KNA1'
    IS_VARIANT = GS_VARIANT
    I_SAVE = 'A'
    I_DEFAULT = 'X'
    IS_LAYOUT = GS_LAYOUT
    IS_PRINT = GS_PRINT
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING = GT_EXCLUDE
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    IR_SALV_ADAPTER =
    CHANGING
    IT_OUTTAB = ITAB2[]
    IT_FIELDCATALOG = GT_FIELDCAT
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    others = 4
    After running this program iam getting the default printer spool request number 'A909', Iam not getting printing form 'LP01'.
    Need is to send the print to given printer (LP01), here printer may varry accoring to the selection. So nee is to set the printer that which has choosen.
    Please give me the valuble solution as early as possible.
    Please solve this as early as possible.

    Hi Ravi,
    You can choose for the print version to be created as a PostScript file instead of a PDF document. The PostScript file is then sent directly to a printer of your choice
    If you do not specify an output device here, a PDF file is generated and displayed on the screen.
    You use the methods of the interface class IF_SALV_WD_PDF_SETTINGS for this (implementing class CL_SALV_WD_CONFIG_TABLE).
    <b>Function</b>                      <b>Method</b>
    Set ALV output to be printed immediately -->  SET_PRINT_IMMEDIATE
    Check whether the ALV output is to be printed immediately --> GET_PRINT_IMMEDIATE
    Set printer -->  SET_PRINTER
    Get printer --> GET_PRINTER
    See the below for SAP link
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/27472def40601ee10000000a422035/content.htm
    see the thread also
    Re: How to set the printer in set_table_for_first_display
    mark all the helpful answers
    Regards
    Sudheer

  • How to set print format what I want in ALV Report

    Hi, guys...
    Let me ask something.
    In AVL Report, I want to set print format when users print list.
    so, I used function 'SET_PRINT_PARAMETERS' on INITIALIZATION Event. but it doesn't work.
    Looks like it works list program(using 'WRITE') only.
    Please, give me some hint^^

    Thanks for the reply...
    But, I want to set print format like 'X_58_170'...
    I call the fuction 'SET_PRINT_PARAMETERS'
    ... example)
      CALL FUNCTION 'SET_PRINT_PARAMETERS'
        EXPORTING
          LAYOUT     = 'X_90_120'
          LINE_COUNT = '55'
          LINE_SIZE  = '110'.
    but, it doesn't work in ALV list program. It only works 'write' list program.
    Give me an answer plz...
    Regards
    Kyung Woo

  • Anyone knows how to set printer to economy mode from your ibook?

    I am using a HP 1320 laser printer for both my ibook G4 and a pc. With the pc there is no problem to set the printer to economy mode for toner saving, but I can't find a way to set up the same mode from Mac. Is it because of the version of the printer software? Does anyone know how to do it from your mac?
    Any suggestion will be appreciated.

    My Canon driver gives me the ability to create presets based on specific types of pictures (high quality color, draft mode, black & white etc.). It sounds like the HP driver is not as generous.
    All printer settings for ink, paper handling, etc. occur on the screen appearing when you select "print". If "economy" does not appear, then the PC driver probably (no surprise) gives more options than the related Mac driver.
    Have you contacted HP directly? If not, it might be your best tact, at least to offer suggestions for future driver options.
    In the 3rd party "driver" world, a favorite is Gutenprint (formerly known as Gimp-Print). This driver package may offer you more print options than HP.
    iMac G5 Rev C 20" 2.5gb RAM 250 gb HD/iBook G4 1.33 ghz 1.5gb RAM 40 gb HD   Mac OS X (10.4.5)   LaCie 160gb d2 HD Canon i960 printer

  • How to set printer option for information broad casting

    Hi
    I have web template theer i select information broad casting and selected by print , theer its aksing printer name? how can i give setting , if i wnat get prinetr where can i do printer setting
    ple let em know

    Hi,
    we can set in sap menu>tools>CCMS-->Print:
    for more details check this:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1029340b-041d-2a10-76bd-fe83350aad29
    thnks.

  • How to set print settings

    I have an Epson R260 printer and previously printed using photoshop Elements, with Elements managing the color. I am trying to figure out how to print using iPhoto.
    When I choose a photo and click the print button, I get a box that has 4 presets: "Photo on Photo paper", "Photo on Photo Paper - Fine", and 2 more for matte paper. I pick the Photo on Photo Paper - Fine preset and click the Print button. This gives me another print dialog, again with a Presets drop-down, but now with "Standard" available and preselected. Should I re-select the "Photo on Photo Paper - Fine" option here? Or leave it at Standard? There also is an "Advanced" button, which allows me to choose Print Settings -- once more allowing me to select a paper type and print quality, as well as color management, where I can set what looks like parameters for the Epson print driver -- Mode (Epson Vivid is preselected, but Standard and Adobe RGB are other selections) and Gamma (1.8 is preselected, but 1.5 and 2.2 are available).
    I've gone through 3 or 4 different tries at combinations and either get something rather garish, or too dark. Can someone help out?

    Jim:
    What I do is create a special setting for the printer while in PSE with the settings for the paper quailty and other items that you use for best prints and save with a custom name. Then go thru the print process in iPhoto selecting the printer and print size. Then in the last window you can select the custom setting that you developed earlier.
    You'll be able to use those settings from any application.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How do set printing margins for my hp110photo smart printer

    I can't get my printer to print the whole page text. It cuts off most of the right portion of the document.How do I set the margins so it doesn't do this.

    seminolepeddler
    Possible place(s) to look for a fix:
    This might be a function output of the type of document you are printing.
    Try setting the editor to wrap the text at a particular margin size.
    Depending on your document editor and / or your browser , much of what is printed is controlled in Print Preview.  The Print Preview feature is available in most editors and most browsers under File, that is, the left-most editor drop down menu function.  (Chrome lacks a File Menu, find these features in Settings.)
    You may need to switch the print to landscape.
    You can also control the margins, at least to a small degree, in the Page Setup > Margins - Header / Footer tab of Print Preview.  Be Aware:  Expanding the margins may impact the header / footer information that is ordinarily printed on the document along with the text.  You can switch off this information, if desired.
    Dragon Document about Print Preview:
    Change Print Size with Print Preview
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • How to set Print...More Options...Current View in ActiveX control?

    I am using Visual Studio 2012 to develop an application that will open large PDFs (24" x 36") and allow the user to zoom to a particular part of the document. I want to give them a Print button on my application to simply print the Current View of the document to the default printer. I want limited customer options, so no showing the Print Dialog, etc... This will be for general customer use. I am trying to do this with the Acrobat Reader ActiveX control. If this cannot be done with the ActiveX control, I thins something I could do with the full Acrobat SDK? Thanks!

    The Reader control actually does what I want pretty well. I set the mouse wheel to allow zooming, the hand tool to drag the document around works easy and fast. I just need to turn off some of the Acrobat Toolbar options and set this Print Current View option.
    This is frustrating as back in Acrobat Reader 7 or 8 I think, you could set the Current View in the Print Dialog and the setting would stay until it was specifically changed. Now it reverts per print job, thus I now having to code against the Reader control, or other, to get around it, to keep the user from having to set this option each time (and the user will change frequently as they are walk-in customers)
    Anyway with this additional list of requirements, do you thihnk I still cannot do it with the Reader ActiveX control? If not, and I need to use the SDK, do you mean I would have to buy a full copy of Adobe Acrobat and install on that system for the application to work? If so, do I also need to buy another full copy of Adobe Acrobat for my development system so I can write code and test the application? If I need a full copy for the Dev computer, does Adobe have any kind of reduced pricing for a Dev version?
    Thanks!

  • How to set printer settings

    I have created report for purchase register.
    i am taking print this on epson printer.
    i have created my own page size as below
    width is 40 cms and height is 30 cms.
    how can i assign above width and height for my printer.

    Hi,
    Please check below strutures, It will help you to solve ur problem.
    ssfctrlop
    ssfcompop
    ssfcompin.
    DATA: gt_control TYPE ssfctrlop,
          gt_output  TYPE ssfcompop,
          gs_input TYPE ssfcompin.
      gs_input-device = 'PRINTER'.
      gs_input-tdpreview = 'X'.
      gs_input-tddest = 'LP01'.
      gs_input-dialog = ' '.
      CALL FUNCTION 'SSF_OPEN'
           EXPORTING
                input         = gs_input
                user_settings = 'X'
           EXCEPTIONS
                error         = 1
                OTHERS        = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *  gt_output-tdnewid = 'X'.
    *  gt_output-tddest = 'LP01'.
      gt_control-preview = 'X'.
      gt_control-no_dialog = 'X'.
      gt_control-no_open   = 'X'.
      gt_control-no_close  = 'X'.
      CALL FUNCTION gv_func_name
           EXPORTING
                order              = pa_order
                control_parameters = gt_control
                output_options     = gt_output
                user_settings      = space
           EXCEPTIONS
                formatting_error   = 1
                internal_error     = 2
                send_error         = 3
                user_canceled      = 4
                OTHERS             = 5.
      IF sy-subrc <> 0.
        WRITE: 'Sy-subrc:',sy-subrc,
               'Error occurred while calling smart form FM!'.
      ENDIF.
      CALL FUNCTION 'SSF_CLOSE'.
    Regards,
    Anversha

  • How to set print area in Pages

    I've created a document in Pages and when I view it there are two pages.  I want to send it to people as an attachment and I only want them to see the first page.  I've tried to delete it, checked the margins they are OK, and looked to see if there is any want to set the print area and just save that.  Anyone has any ideas?

    See Chapter 6 of the Pages User Guide PDF. You can download it from the Help menu.
    Once you have mastered Styles, you should be on top of this problem. You may have some specific questions on formatting along the way, and there are lots of experts here to help you.
    Jerry

Maybe you are looking for

  • Calling a static method from another class

    public class Command     public static void sortCommands(String command, String order, List object)          if(command.equalsIgnoreCase("merge") && order == "a")               object.setAscending(true);               Mergesort.mergesort(object.list)

  • 10.4.6 update permissions problems

    Anyone know how to solve the permissions problems from the 10.4.6 update. For some reason after doing the update we can read only from our servers and they have a little lock icon next to them!! after searching the net a bit i know other people are h

  • Added Schemas can be viewed in SQL workshop but can't while creating Form

    Hi Friends We are using APEX 3.1 and Oracle 10.2.0 at back end. I can assign other schemas to a work space successfully. The Problem is that Added schemas can be viewed in SQL Workshop (SQL commands) But can not view the added schemas in the list whe

  • Where can I find a driver for STLab USB 2.0 to VGA Adaptor for Macbook Air

    Where can I find a driver for STLab, USB 2.0 to VGA Adaptor for Mcbook Air

  • Help !! a link error

    when I link my application to an lib. the following link error occurs: Undefined first referenced symbol in file __RTTI__1CpknKDT_TSymbol4nJRWCString___ /am/lib/sun4.solaris2.9/libDV.so How can I get the information about the symbols in a lib? I'm no