How to disable HP Universal Printing dialog box

Hi, I am trying to install HP Universal Printing PCl 6 printers on a local machine using a batchfile from an application (C#) which automatically detects if a printer has been installed or not. The batchfile has the following entries:
set IP=IP_%1
pushd "%windir%\System32\Printing_Admin_Scripts\en-US\
Cscript Prnport.vbs -a -r IP -h %1
rundll32 printui.dll,PrintUIEntry /ia /m "HP Universal Printing PCl 6" /h "x64" /v "Type 3" /f %windir%\inf\ntprint.inf /u
rundll32 printui.dll,PrintUIEntry /if /b %1 /f "%windir%\inf\ntprint.inf" /r IP /m "HP Universal Printing PCl 6"
When I run my application, the printer is installed but when I try to print, sometimes I get the HP Universal Printing dialog asking me to select a printer. I can't even exit from this dialog. Other times when I dont get the printing dialog my print function fails with Invalid Handle exception.
The next time I try to print with the printer installed, it prints documents successfully.
How can I disable this print dialog using the batchfile above and why do I get the Invalid Handle expection on the first install and print??

I don't think there's anyway to disable it, I just minimise iTunes or click on another application's logo while it loads. I agree with you as to it being annoying, but I don't think there's anyway to disable it. In my opinion it should just do it in the background without the dialog box...!

Similar Messages

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

  • How to disable the "GETTING PLAYLIST" dialog box that appears in Radio

    In itunes radio playlists, I click on a station and a message appears in a box, centered on the monitor screen that says "getting playlist" along with a blue striped status bar. I wonder if I can get rid of this annoying thing.! Because I know it is getting the playlist; I just clicked on a station. Why do I need to have this box sit on top and in the middle of my other applications?
    Is there some genius out there who knows an answer?!

    I don't think there's anyway to disable it, I just minimise iTunes or click on another application's logo while it loads. I agree with you as to it being annoying, but I don't think there's anyway to disable it. In my opinion it should just do it in the background without the dialog box...!

  • HT204135 How can one make the printer dialog box to have Show Details as default?

      I very often use different presets from document to document.  Thanks.

    Once you select the Show Details for any application, the next time you use that application and select to print, the full details pane should be shown.
    If this is not happening and the applications always show the Hidden Details print dialog then you may need to perform some sort of reset.
    Also, if you were to use the Presets option and set commonly used settings as a Preset, then even if the print dialog is not showing the extra details, you can still select the desired Preset from this print dialog.

  • Crystal 10 RCD and Windows (Advanced) Print Dialog Box

    Years ago I wrote a Crystal Viewer program and Crystal Support showed me how to change the Viewer Print Dialog box so it would use the Advanced Print Dialog (I believe it used the Windows Print Dialog). Does anyone know how to set the RDC Viewer to use a Print Dialog that allows changing the printer and not just the default Print Dialog box that only shows settings for the default windows printer? I no longer have the source code for the program I wrote before and can't remember what to set and I have now written a new Viewer that I want to include the ability to change printers.

    Ahhh, what you're looking for is descibed in note #[1212245|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] - How to use the Printer Setup dialog box.
    Ludek

  • Is here a way to disable the print dialog box?

    I am trying to disable the print dialog box so that a page can print directly from a javascript "print" command. How can I disable the print dialog box so that it will print automatically?

    You can try creating a new boolean preference - '''print.use_native_print_dialog''' - and set it to '''false''' and see it that still works. That pref was removed from about:config a number of versions ago, but the underlying code might still be present, so give it a try.
    http://kb.mozillazine.org/About:config

  • HT3669 Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this opt

    Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this option?

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • SUBMIT command;  for print dialog box-how to pass parameter here?

    Hi Gurus,
    I am calling a report from another report. Inside report_2 i am using,
    When i execute report2, i get a PRINT DIALOG BOX
    Here i need to enter the output device name. and again excute.
    I am not able to automate this in my program. Could you suggest?
    Through F1 help, i found the screen_field name(of the output device parameter) to be 'SFPOUTPAR-DEST'
    and i enter default output device 'PDEST'
    where do i give this?
    and also, after this, i need to do a 'Print Preview' action and see if file is opening up.
    Can i automate these actions?
    I am using:
    rspar_line-selname = 'SFPOUTPAR-DEST'. // the output device parameter name
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-low = 'PDEST'. // PDEST is the default value i want to pass
    APPEND rspar_line TO rspar_tab.
    Then i do, (inside report 2....)
    SUBMIT report_1
    WITH SELECTION-TABLE rspar_tab
    AND RETURN.
    Its not working... i just get the print dialog box(without values being defaulted)
    How do i proceed?
    Thanks,
    Rashmi

    Hi
    You can do the following way.
      data :  lv_pri_params     like pri_params,
              lv_user_name      type char16,
              lv_user_name0     like tbtcjob-authcknam.
      lv_user_name  = sy-uname.
      lv_user_name0 = sy-uname.
      call function 'LOAD_PRINT_PARAMETERS'
           exporting
                key            = lv_user_name
           importing
                out_parameters = lv_pri_params
           exceptions
                error_occured  = 1
                others         = 2.
      if sy-subrc <> 0 or lv_pri_params-pdest is initial.
        select single padest into lv_pri_params-pdest from tsp03.
      endif.
      submit report1
        with selection-table rspar_tab
                 destination             lv_pri_params-pdest
                 copies                  lv_pri_params-prcop
                 list name               lv_pri_params-plist
                 immediately             space
                 keep in spool           'X'
                 new list identification 'X'
                 line-count              lv_pri_params-linct
                 line-size               lv_pri_params-linsz
                 sap cover page          lv_pri_params-prsap
                 cover page              lv_pri_params-prbig
                 without spool dynpro
                 user lv_user_name
                 and return.
    Reward Points, if it is useful.
    With Regards
    Raja.
    Edited by: Ravindra Raja on Jun 24, 2008 4:15 PM

  • After the latest two updates, whenever Firefox starts, the print dialog box appears automatically. Why, and how do I stop this?

    Not much else to add. The print dialog box just opens every time Firefox is started or restarted.

    Check the Home page setting:
    *https://support.mozilla.com/kb/How+to+set+the+home+page
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How to suppress print dialog box from popping up under a condition

    Greetings...
    There may be a better way to accomplish what I'm trying to do, so I'm open to outside-the-box suggestions.
    I have a pretty simple page which lists a set of statuses and descriptions of each. The user can edit these status flags and their descriptions on the page as well. When I view the page in "printer friendly" mode, I see a nice simple report of what the statuses are and their descriptions. Everything works great so far.
    In our work request system built in ApEx, there's a page where someone can view the details of a work request, including the current status. When someone clicks on the help of that item, what I'd love to do is simple show the "printer friendly" version the status page mentioned above in a pop up window. My problem is that the print dialog box automatically shows up when a page is displayed in "printer friendly" mode and I do not want this to happen in this case.
    I see the javascript code in the Printer Friendly page template which causes the print dialog box to show up automatically, but I don't want to remove it in the template just for this one case. This would suppress the print dialog box on all "printer friendly" page views and the users are used to it showing up when they ask to print the page.
    I guess I could create a custom request to pass to the master status page which would pretty much do everything that the "printer friendly" mode is doing, but that seems like a lot of work when I'm so close to using something that is built in.
    Am I not seeing some simple other way of doing it or perhaps asking too much? Any suggestions?
    Shane.

    Hi,
    I think you have to call the FM GET_PRINT_PARAMETERS and pass NO_DIALOG = 'X'.
    Something like:
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog      = 'X'
        IMPORTING
          out_parameters = ls_params
          valid          = lv_valid
        EXCEPTIONS
          OTHERS         = 1.
      NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
    * Display Table
      lr_table->display( ).
    add: Spool numbers can be found in TSP01 or in system field SY-SPONO available in the submitting program...
    Hope it helps,
    Kr,
    m.
    Edited by: Manu D'Haeyer on Sep 28, 2011 10:02 AM

  • How to suppress the Print Dialog Box?

    Running an (ASP.NET /Crystal Reports 2008) application and using CrystalReportViewer control. Is there way to suppress the print dialog box when I click the print icon on the report tool bar?
    Edited by: juRamz on Aug 26, 2009 2:54 PM

    Hello,
    Sort of, CR needs the info. Only option is to create your own print button that has all the info filled in. It's a Windows Framework Common dialog box that CR calls so it's the OS that is prompting for the info.
    Using ReportClientDoc here's a possible solution, note that this too has a dialog box to select the printer:
    private void button1_Click(object sender, System.EventArgs e) // Print To Printer button
        System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();               
        PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
        CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
        //CrystalDecisions.CrystalReports.Engine.PrintOptions newOpts = new PrintOptionsClass();
        pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PaperSize = (CrPaperSizeEnum)
            pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
        rasPROpts.PaperSource = (CrPaperSourceEnum)
            pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
        // new API added to allow changing printing options
        newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
        newOpts.DissociatePageSizeAndPrinterPaperSize = true;
        rptClientDoc.PrintOutputController.ModifyPageMargins(0, 0, 0, 0);
        rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
        MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • How to access Print Dialog boxe's "Pages" property

    Hi,
    I am using the following line to populate the Print dialog box.
    xfa.host.print(1, "0", (xfa.host.numPages-1).toString(), 0, 1, 0, 0, 0)
    Is there any way that I can access Pages option using JavaScript with Adobe LiveCycle Designer 8.0 where I can show the page range to print?
    I want to print 3 copies of 1st Page and then the one copy of full PDF. So in the Pages option of Print dialog box I want to display 1,1,1,1-9. Is there any way to accomplish this programmatically?
    Or is there any better way to print 3 copies of 1st page and then 1 copy of whole pdf?
    Thanks.
    Niketa Parekh

    Hi,
    I am using the following line to populate the Print dialog box.
    xfa.host.print(1, "0", (xfa.host.numPages-1).toString(), 0, 1, 0, 0, 0)
    Is there any way that I can access Pages option using JavaScript with Adobe LiveCycle Designer 8.0 where I can show the page range to print?
    I want to print 3 copies of 1st Page and then the one copy of full PDF. So in the Pages option of Print dialog box I want to display 1,1,1,1-9. Is there any way to accomplish this programmatically?
    Or is there any better way to print 3 copies of 1st page and then 1 copy of whole pdf?
    Thanks.
    Niketa Parekh

  • How can I get print dialog box to show accurately?

    My print dialog box shows the image too large. If I go to print it prints correctly. I have tried updating drivers and reinstalling Illustrator. It has been happening since new update to CC.

    When viewing the print settings, in the Summary List, it shows the Paper width as 9 inches rather than 8.5.
    The Navigator window shows (in my test file) 4 plus signs across the top of an 8.5 by 11 inch page.
    The Print Preview in the Print Dialog shows  only 3.  My printer is set to standard 8.5 by 11 page size.
    Everything prints perfectly in CS6 when I bring the file in.

  • How to set print dialog box to sync with applications

    Dear all
    I am using different applications, such as photoshop, lightroom, etc. All these applications have their propper print dialog box with enhanced settings.
    BUT
    after hitting the print button, my computer takes me always to the mac print dialog box, where again I can set different things: I can set paper quality, paper format, the colors...
    to me it seems that the settings I have chosen in the application print dialog box are getting erased by this second set of (OS X) print-settings.
    WHY DO I NEED TO GO THROUGH TWO PRINT DIALOG BOXES?
    Can I omit the OS X print dialog?
    Or am I missing something?
    many thanks for your help,
    Hynek

    Thank you for this reply.
    I will work around it with presets.
    but just to understand this: *which dialog box is the one setting the printer* (when for example using photoshop)? is it the first dialog box, i.e. photoshop print dialog box - or is it the osX print dialog box?
    if it is the second, I can skip the photoshop-one... ?
    or do I need to experiment with a combination of both?
    greetings,
    Hynek
    p.s. I know, it is a rather late reply. But we became parents 7 months ago, and time at the moment just flies by...

  • How to open window print dialog box ?

    Hello experts,
    i want to print the form degin with data in forms' field.
    for this i add a button in my tools bar. i want when to call the windows print dialog box.
    please help
    Thanks
    yash

    You did not mention what Forms version you are using or the platform on which it is running. Although that doesn't really matter much in this case, please include this information in the future.
    To print a screenshot of the currently displayed (running) form, use the PRINT built-in. Refer to the Builder online help for details. Here is the example from the online help:
    /*** Built-in: PRINT **
    Example: Print the current window. */
    BEGIN
    Print;
    END;

Maybe you are looking for