How to avoid Printer screen coming up after astarting a Printjob

I'm printing from JAVA with the wellknown PrintJob and Graphics classes. Everytime I call my print method the printer window appears in which I can fill in the number of copies and other properties . After pressing OK the print starts. I don't want this printer window. How can I switch it off ?
I'm working with Visual Cafe PDE.
Thanks in advance, John de Jager

Just simply don't call PrinterJob.printDialog()

Similar Messages

  • How to avoid the screen of selection output device

    Hi all,
    Who can tell me how to avoid the screen selection output device when running a smartform.
    Best regard.

    Hi,
          data: wa_SSFCTRLOP  type SSFCTRLOP.
           wa_SSFCTRLOP-DEVICE = 'PRINTER'.
           wa_SSFCTRLOP-NO_DIALOG =  'X'.
           wa_SSFCTRLOP-PREVIEW = 'X'.
        in the function module
       call function '....
       exporting
       CONTROL_PARAMETERS = wa_ssfctrlop
    regards,
    Santosh Thorat

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • How to avoid printing of void cheques

    Hi Friends,
    In the check printing program FBZ5,  whenever there are more than 25 line items, the first two cheques are getting cancelled and the third cheque is getting printed and thereby wasting the first two cheques.
    I would like to know, how to avoid printing of such cancelled cheques.
    TIA.
    Regards,
    Mark K

    hi
    good
    you can use like this when you r going to FBZ5 tcode in the right hand side there is a tab called Output Control, there if you check the test print out it ll give you this result
    Indicator: Test Print
    If you select this indicator, the print program carries out a test print (for purposes of fine-tuning the printer output) before printing the actual payment media.
    so before taking the original print out you can able to understand which is going to be cancel and which one is going to print .
    Reward Point If Helpful
    thanks
    mrutyun^

  • How to do Print Screen in mac ?

    Can any one help me out with how to do Print screen in mac ?

    System Preferences > Keyboard
    The "4" variant lets select as I did to make the screenshot

  • How come my messages keep coming back after I delete them???

    How come my messages keep coming back after I delete them???

    Apple's Mail application can use either IMAP or POP. In fact Gmail can be set either way.

  • How to avoid selection-screen?

    Hi,
    i have this short report:
    TABLES: MARA.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    AT SELECTION-SCREEN.
      IF SY-BATCH = 'X'.
    * how to avoid selection screen
      ENDIF.
    START-OF-SELECTION.
      SELECT * FROM MARA WHERE MATNR IN S_MATNR.
        WRITE: / MARA-MATNR.
      ENDSELECT.
    END-OF-SELECTION.
    in batch i don't want the selection-screen. Is it possible? How can i do this?
    Thanks.
    regards, Dieter

    Dieter Gröhn wrote:
    > Hi,
    >
    > i have this short report:
    >
    >
    > TABLES: MARA.
    > SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    > *
    > AT SELECTION-SCREEN.
    >   IF SY-BATCH = 'X'.
    > * how to avoid selection screen
    >   ENDIF.
    > *
    > ************************************************************************
    > START-OF-SELECTION.
    > *
    >   SELECT * FROM MARA WHERE MATNR IN S_MATNR.
    >     WRITE: / MARA-MATNR.
    >   ENDSELECT.
    > *
    > END-OF-SELECTION.
    >
    >
    > in batch i don't want the selection-screen. Is it possible? How can i do this?
    >
    > Thanks.
    >
    > regards, Dieter
    Please check the value of the variable sy-binpt, I believe the value of the variable sy-binpt will be set to 'X'  if the program is called from a bath input, hope this helps.

  • How to avoid print configuration screen

    Hi everybody,
    I'm executing a program which has to print two smartforms, one followed by the other, but I don't want the printing configuration screen before printing each one, I want it only to appear in the first one and then inherit printing parameters in the next smartform and avoid the screen.
    How can I do this? I think that is by using output_options parameter but I don't know exactly how.
    Many thanks,
    Cristina.

    hi,
    I understand that you have your own program that triggers both Smartforms, one after the other, right?
    Try this:
    In your program trigger the first smartform (and have the print config screen popup)
    WITHIN that smartform you trigger the second Smartform and suppress the the config screen.
    Since the output options are know at this point you can pass them to the second smartform.
    I hope it helps,
    regards,
    Joris Bots

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • How to Avoid Printing the data twice when the sub report has drill down?

    Hello,
    I have a sub report that has drill down which is placed in report footer.When i run the report sub report displays the data but when i tried to drill down it displays the same data again.After that i can able to drill down on sub report.Is there any way to avoid
    printing the same data twice.
    Thanks in advance.

    Hi,
    If the subreport you're referring to does not grow in size and it does not span multiple pages and you know the size of it, here's what you can do to stop drilling into subreports :
    1) Create a text object as large as the subreport (perhaps bigger than it) and fill it with spaces or new lines
    2) Place it 'over' the subreport such that it covers the entire area occupied by the subreport
    3) The subreport at all times should be smaller than the text object in all dimensions
    Now, when you hover the mouse over the subreport, there isn't any magnifying glass for you to drill down into.
    If the subreport has further drill-down functionality, then this isn't for you! Because, it just wouldn't allow you click on any objects in the subreport because of the text object eclipsing it. This is the only workaround I know at this point in time and I know a lot of users are looking for this.
    I would suggest that you log this as an Enhancement Request at http://ideas.sap.com for our developers to have a look into this.
    And finally, I also found an old forum post where Jamie has suggested a way to get this working on the Business Objects Environment. Give it a shot, if that's where the reports are eventually run.
    How to disable subreport view
    Hope this helps!
    -Abhilash

  • Mac hardware: How do i print screen on a PC with a Mac Keyboard??

    I have a Apple Mac Pro, but when I'm booted directly into Windows Vista (using Boot Camp) how do I do a Print Screen?
    The Apple Keyboard is missing the "Print Screen", "Scroll Lock", and "Pause/Break" keys that a normal PC Keyboard has.
    I'm using Windows Vista Ultimate x64, and apparently this issue has NEVER been addressed or fixed by Apple, because I've seen posts dating back over 4 1/2 years on this same issue/problem, and I've seen fixes for Windows XP, but nothing for Vista. I found this article addressing the issue:
    http://forums.cnet.com/5208-7592_102-0.html?forumID=25&threadID=12105&messageID= 137974
    I did find this software application, but it only works on Windows XP (not Vista):
    http://www.dieselstation.com/software/
    Is there any Easy way to Map and allow the use of Apple keyboards in Windows Vista?
    AppleKeys allows the use of Apple keyboards on a Windows machine. It properly emulates the F13 - F15 keys to "print screen, scroll lock, and pause/break" accordingly.
    Why hasn't Apple just added a "Keyboard Emulator" in the Boot Camp client that gets installed Vista? I'm currently running Boot Camp client version 2.1, why doesn't Apple just add a keyboard emulator/keyboard mapper inside the Boot Camp version 2.1 client?
    This way the F13-F15 keys will automatically emulate the "print screen, scroll lock, and pause/break" keys properly like on a PC keyboard.
    I've searched everything, and this has turned into such a time consume and HEADACHE of a project, and I'm really disappointed that Apple has "dropped the ball" on something so simple.
    If a third party person, had to create the "Apple Keys" program (to run under Windows XP) you'd think that this is a problem, and that Apple would finally address this problem?
    Could someone from Apple, please take the time and fix this? At least copy, or make something similar to the "Apple Keys" program that automatically install inside the Boot Camp client, so when a person installs Windows Vista, and the Boot Camp client installs inside Windows Vista it will automatically run a keyboard emulator (similar to Apple Keys) so that you can properly use the F13-F15 keys on the Apple Keyboard as "Print Screen", "Scroll Lock" and "Pause/Break".
    Could Apple do this, and push out a Boot Camp Version 2.2 update with this feature added to Boot Camp? I would greatly appreciate it, as would most of the other Windows Vista users I'm sure.
    Apple Keys does not work for Windows Vista, only Windows XP and I've been unable to find an alternative Fix, and I wish that Apple developers would just get off their tail and finally FIX this problem!
    C'mon guys, you've known about this 4 1/2+ years, and why does it take some third-party person to create an application like "Apple Keys" just to fix the issue?
    Well the author of that program is no longer available, the website is gone, and I've been unable to find a way to contact him (or ask him to update his program for Windows Vista), but all these headaches shouldn't be necessary. All this stuff should just "WORK" right out of the box, and Apple developers really should have thought of this, and just added something this simple to Boot Camp plugin/client, that way when the Boot Camp 2.1 installs inside of Windows Vista, it will install the Apple Keyboard Emulator which will automatically emulate the PC keyboard, and emulate the F13-F15 keys as "Print Screen, Scroll Lock, Pause/Break". The normal PC keyboard doesn't even have a "F13-F15 keys" and only goes up to F12, so you would think that Apple could just do something SIMPLE like emulate the keys on the PC Keyboard, and just use the F13-F15 keys as the "Print Screen, Scroll Lock, and Pause/Break" keys.
    I would greatly appreciate it if a Apple Developer could begin working on this, and just push it out as a Boot Camp Version 2.2 update. So that it will fix these problems for all Apple/Windows Boot Camp users running Vista.
    Thank-you!

    AppleKeys allows the use of Apple keyboards on a Windows machine. It properly emulates the F13 - F15 keys to "print screen, scroll lock, and pause/break" accordingly. Unfortunately AppleKeys only works on Windows XP and earlier, and it has been discontinued by the author.
    Why hasn't something as simple as this been addressed or FIXED by Apple?
    Why hasn't Apple just added a simple "Keyboard Emulator" (identical to AppleKeys) inside the Boot Camp client that automatically gets installed on Vista or Windows XP? I'm currently running Boot Camp client version 2.1 in Vista Ultimate x64, why doesn't Apple just add a keyboard emulator/keyboard mapper inside the Boot Camp version 2.1 client? So that the Apple Keyboard properly emulates the F13 - F15 keys to "print screen, scroll lock, and pause/break" automatically when the Boot Camp client is installed in Vista?
    Are the Apple Developers "sleeping on the job"? Surely something SO SIMPLE wouldn't be hard to add or fix. VMWare Tools guys seem to do a great job, I would think that Apple would begin working on a fix for this, and finally address the issue and fix this. Give us a client application that we can install that will work on Windows XP and Windows Vista that will allow our Apple Keyboards to map/emulate a Windows PC Keyboard inside Windows XP or Windows Vista automatically. This could easily be done when Vista installs Boot Camp client (automatically) inside of Vista, Apple could then install a PC Keyboard emulator to support the Apple Keyboard that would map/emulate the F13-F15 keys on a Apple keyboard to the standard "Print Screen, Scroll Lock, and Pause/Break" keys on a PC Keyboard.
    C'mon Apple, please just fix this problem and make life a little easier on your users. I just bought a Mac Pro, and I'm a new Apple Mac user and I'm just really disappointed that something so simple still hasn't been addressed or FIXED by Apple. It should be automatic, and I shouldn't have to hunt and search the internet trying to find a solution, just to fix something so simple.
    Apple Developers really dropped the ball here, and I would like to see them create an Apple Keyboard Client that will automatically be installed in Windows XP or Windows Vista that will properly map/emulate the PC Keyboard, so that the F13-F15 keys can be properly used as "Print Screen, Scroll Lock, Pause/Break".
    Thank-you, and PLEASE PLEASE PLEASE fix this issue!

  • How to use Print Screen function (part deux)?

    The previous thread for the Print Screen function has been marked as read only, and won't allow any replies. I tried all of the suggestions (PrtScr, CTRL + C + PrtScr, etc.) and then CTRL V into MS Paint, but Print Screen still doesn't work on my machine.
    I'm running Win 7 on a HP Pavilion laptop cv7-6b32us. I suspect there's a switch somewhere in Win 7 or HP that allows the key to be turned off. I know of this because my previous employer did not want anyone doing print screens due to HIPAA violations. Thus, the functionality was turned off. Those of us in I.T. were provided a third-party software that aloowed us to do the same function, but it was not released to the physicians or nursing staff. If I have to, I'll go out and buy the software. I really need this functionality for a class I'm taking.
    Thanks!
    This question was solved.
    View Solution.

    Kurt, welcome to the forum.
    Here is a video to show you how to use the Snipping Tool:
    Please click the "Thumbs Up+ button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • How to use Print Screen function?

    I've seen various descriptions of how to use the print screen function.
    It would be nice to actually be told one that works.  None have worked for me.
    [Fn] and Prt SCr does not work.
    Ctrl and Prt SCr does not work.
    Ctrl, Alt, and Prt SCr does not work.
    [Fn], Ctrl, and Prt SCr does not work.
    If anyone knows the correct method of activating the print screen function that would be good.
    From the looks of things HP has a big problem with this function.
    This question was solved.
    View Solution.

    On my notebook, the Insert key and the prt sc key are the same key, but the prt sc has a ring, around it, if you know what I mean.
    On the bottom left of my keyboard is a key that has fn with a ring around it, or I guess you could say it is in a little box.  By the way, there are a number of keys that have two functions on them, and to activate the second function, you must press the fn key at the same time as the desired function on the key.  In this case press the  fn key and  the prt scr key, and that puts an image of the screen on the clip board and then it can be pasted into Word or where ever.
    Here is somethine else you might like, if you can get it to work as I described above.
    To print only the active window, and not the entire desktop or the entire screen, you can do that by pressing the alt and prt sc at the same time.  Then it only captures to the clip board the window, and not the entire desktop. Oh, and in the scenario with the fn key, it has to be pressed also, so actually it's pressing the fn and alt and print screen all at once.
    I just performed each of the instructions above, and they worked well on my EliteBook 8440. 
    Hopefully you have the same experience,
    GeorgeFN
    GeorgeFN
    I work on behalf of HP.

  • How to get the screen to dim after a certain time?

    cant remember how to get screen to dim after no screen activity? anyone remember?

    Settings, general, autolock.  Set it for however long you want it.

  • How to avoid printing a page if does not contain data in smart forms

    deat all,
    here is urgent requirement for me .
    i have 3 pagelayouts in smartforms.
    if there is no data in page 2 how to avoid it from printing(the second page should not come in even if it contains hedings and logo)

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

Maybe you are looking for