Print Configuration Dialog Box

Hello all,
    I want to enable the print configuration dialog box pop up when a button is clicked in vi.
This is standard windows printer configuration dialog box which pops up when any file (xls,txt etc.)
is tried printing.Any suggestions please ?
Also i have attached the standard windows print dialog box, just incase.
Thanks in advance,
Nalin
Attachments:
print.JPG ‏33 KB

In general use a property node with nothing attached to it in LabVIEW with the property Printing >> Default Printer or Printing >> Avalaible Printers to return the printers configured with Windows. One of these string items can be wired into the printer input of the report generation Print Report VI to select a printer.
In regards to the Microsoft Common Dialog 6.0 ActiveX controls, the printer selection from the dialog seems to be determined by the hDC output, which stands for hardware device context. If you modify the demo posted above to send in the appropriate flag value, either an informational or a direct hardware device context handle is returned in the ICommon property hDC. Input the flag value 512 to the ICommonDialog property Flags to return an hardware device context handle from the hDC property, or 1024 to return an informational device context.
More information about how to extract any meaningful information from this I32 number can doubtlessly be found at msdn.com, but I'm not sure personally how to do it. Specifically, here are a few posts to start your search at:
Using the Print Dialog Box
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusingprintdialogb...
Common DialogControl Constants
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cmdlg98/html/vbidxCommonDialogContr...
Alternatively, consider avoiding the Common Dialog Control calling a dll that will directly return the selected printer name from a dialog:
http://support.microsoft.com/default.aspx?scid=kb;en-us;322710
Hope this helps!
Jarrod S.
National Instruments

Similar Messages

  • I'm using an iMac running Os X Yosemite, Photoshop CS5 Extended, R2880 Epson printer  In the Print Settings dialog box, I can't select Color, Advanced BW or Grayscale unless I select "Printer Manages Color". The pull down menu is grayed out. Even with "pr

    I’m using an iMac running Os X Yosemite, Photoshop CS5 Extended, R2880 Epson printer  In the Print Settings dialog box, I can’t select Color, Advanced BW or Grayscale unless I select “Printer Manages Color”. The pull down menu is grayed out. Even with “printer manages color” the tif or jpg image comes out in color overlaid with black. (See example - printer1. image on left is close to what it should be). Photoshop has no updates pending. I’ve downloaded the latest Epson driver which was working fine just before the problem occurred

    Is your Photoshop CS5 updated to 12.1?
    Are you on Yosemite 10.10.1 or Yosemite 10.10.2?
    Did you apply the recent Epson software 2.1.9 update?
    What type of file is it (file format)?  What bit depth and what color space?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Instrument I/O assistant configuration dialog box does not appear

    Hello,
    In the function pallette both input and output subpallettes have instrument assistant express vi.But, when I put in the block diagram window Instr I/O assistant configuration dialog box doesnot appear.I double clicked instr assistant icon but it did not work. Labview version is 7.1.Does anyone has clue to overcome this problem?
    Phylab
    Solved!
    Go to Solution.

    Hello phylab,
    The Instrument I/O Assistant (IIOA) is used for easily communicating with GPIB instruments in Labview. For Labview version 7.1, the IIOA is available on the shipping reference driver CD. It should be automatically
    installed when you're prompted to enter the driver CD, through setup.exe. Is this your first time using it or has it worked in the past? Do you also have the NI-VISA and NI-488.2 drivers? And you installed the LabVIEW cd before the driver cd, correct? The fix should be to uninstall and reinstall IIOA from the device driver CD.
    Regards,
    Deborah Y.
    LabVIEW Real-Time Product Marketing Manager
    Certified LabVIEW Architect
    National Instruments

  • What are the advantages of utilizing a dynamic VI compared to utilizing the VI Call Configuration Dialog Box Reload for each call option?

    Is it more efficient to use a dynamic VI or utilize the VI Call Configuration Dialog Box which apparently can perform the same function? I realize that there are restrictions on using the VI Call Configuration Dialog Box, however, if my scenario doesn't concern the restrictions, why would I want to go thru the trouble of creating a dynamic VI when I could simply click on the VI of interest and configure from a menu? Are there performance advantages? Thanks in advance!

    Generally, I wouldn't recommend playing with the call setup dialog at all (for those who don't know it, you can get to it by right clicking a subVI in the BD). By default, VIs are configured to load with callers and that's the correct options for almost all static VIs. The Open VI Reference primitive has multiple advantages:
    It allows you to select different VIs dynamically.
    It allows you to spawn multiple copies of reentrant VIs.
    It allows you to perform asynch runs (although I think that this is something that should actually be available through the call setup dialog).
    It allows you to open references to VIs in other application instances.
    In the rare cases where you do want the same functionality that the call setup dialog gives you, it doesn't hide it.
    Try to take over the world!

  • How do I configure my custom step type to call its Express VI configuration dialog box each time I double click the step?

    By double clicking on a step in the TestStand Sequence Editor the Properties dialog box pops up.
    How to change this behaviour?
    I would like to configure my step type so that each time I double click the step, the Express VI configuration dialog box pops up, instead of the properties.
    One Idea is to use custom activeX substeps, for example, Antonio Lie mentioned the substep "OnNewStep" in my last post. Is there also a "OnDoubleClick"?
    Does anyone know a list of activeX substep that can be used? Or are there other ideas?
    Thanks a lot!!!
    - Caribe -

    Caribe,
     1. Currently it is not possible to change the behavior for double clicking on a step. It is a good idea though, and we will be consider to add it to the next versions of TestStand.
     2. "OnNewStep" is the only "special" substep. It was implemented for internal use and it is not documented yet.
     3. If you want to know more about substeps you can red the Reference Manual, Chapter 13 is a good place to start.
     4. I want to make clear that "OnNewStep" is called every time you insert a new step. The sequnce editor gets the substeps list and if it finds the "OnNewStep" substep in the   list It calls it using the API. The substep can use any adapter type, It does not have to be the ActiveX adapter.
    Hope it helps.

  • Print Progress Dialog box always stays on top

    Since upgrading to InDesign CC I have noticed that all print progress dialog boxes stay on top of all windows, even after switching apps. I find this highly annoying and want it to go away. Is there a preference I can change to make it NOT be on top, especially when I've switched to a different application?

    (I am OP, having account issues)
    Trashing preferences wouldn't help if it is a default behavior, which I think this is since it's been happening since the beginning with CC. I was wondering if this was a behavior that I can change with a preference or if I'm just stuck with it.

  • Image looks great in PS- when I go to print it looks grainy in printer preview dialog box and prints blurry. Why?

    Image looks great in PS- when I go to print, it looks grainy in printer preview dialog box and prints blurry.  Why is this happening? 

    PS CC, Yosemite, Epson 3880 (called espson to make sure it wasn't something with that), saved as a tiff/psdjpg- all files behave the same way.  When I open the raw file- and only crop the image- it behaves this way now- with grain and blur when printing.  No other files do this in the same shoot.  I worked on this image- could something have gotten corrupted along the way such that now even opening the raw file creates this problem.  SInce upgrading my computer -  a window pops up when I open PS that says I need to update my graphics card?? for 3D- I'm not using 3D- so I don't know if that means anything.  I have to leave for about an hour- but greatly appreciate any feedback. I will be in touch. Thank you.

  • Printing directly to printer without Print setup dialog box

    I am using Crystal Reports 2008 with VB.NET 2008. Using the CrystalReportViewer control, how can I print directly to the printer without having the Print setup dialog box popup every time?

    Only way would be to create your own print button and use the report engine APIs. A good sample app is vbnet_win_printtoprinter in this sample download:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    The developer help is a good place to have a look also;
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    https://boc.sdn.sap.com/developer/library
    Additional resources:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/702ab443-6a64-2b10-3683-88eb1c3744bc
    Ludek

  • How to print a dialog box with all its components ?

    Hi !
    I've written an application.It has a dialog box [JDialog] containing following components:
    1) 2 JLabels.
    1) A JTextField.
    3) A JTable with some values.
    4) A JProgressBar.
    5) A JButton.
    6) An animated gif image.
    I want to print the dialog box with all its components exactly as the are [ Except the button & animated gif ].
    Would anybody please help me?
    My Operating System: Windows XP

    The article over at http://java.sun.com/developer/technicalArticles/Printing/Java2DPrinting/ has some helpful information on printing Swing components.
    It suggests creating a subclass of the JComponent that you want to print, and have it implement Printable interface.
    So, something like (note, uncompiled / untested code alert) :
    import java.awt.Frame;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.HeadlessException;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import javax.swing.JDialog;
    public class PrintableDialog extends JDialog implements Printable {
          * Or whichever constructor you need...
         public PrintableDialog(Frame owner, String title, boolean modal) throws HeadlessException {
              super(owner, title, modal);
          * Implementation of the Printable interface.
           public int print(Graphics g, PageFormat pf, int pageIndex) {
              if (pageIndex != 0) return NO_SUCH_PAGE;
              Graphics2D g2 = (Graphics2D) g;
              g2.translate(pf.getImageableX(), pf.getImageableY());
              getContentPane().paint(g2);
              return PAGE_EXISTS;
    }Cheers,
    John

  • Print Preferences Dialog Box

    Hi,
    I am user defined form (Dispatch Memo).
    I have done coding for display crystal report
    When i click on Print Preview, its showing me Print Preference Dialog box.
    How should i hide this dialog box.
    Thanx & Regards,
    Pravin

    HI PRAVINAUG17  ,
    Please check first Printer is attach as default or not
    and which sap version used ?
    Regrads
    kalpen

  • Adobe pdf printer save dialog box opens in the background - progress bar shows Not Responding

    I have two users who have Acrobat X Pro version 10.1.4 that are experiencing the same things.  First, one person just changed laptops and the new one has a fresh Windows 7 Enterprise X64 image and new installation of Adobe Acrobat X Pro.  When he used the pdf printer for the first time(after opening the program and accepting the license agreement) he was in MS Excel '07 and chose file>print>Adobe PDF and then the progress bar came up and then showed not responding.  After he did this a couple of times with me standing there I noticed that the save dialog box was opening in the background because I could see the icon blinking on the taskbar.  He said that his old computer never did this and that it would always open up and ask where to save the file and never show 'not responding' on the progress bar.  The other person having the same issue is running the same version but she has had the program installed on her machine for a few months and an older version on before that. 
    Is there a way to make the dialog box show as soon as you print to the Adobe PDF printer?  What is causing this?  Is there another way to create a pdf from MS Office like the add-on? 

    I have two users who have Acrobat X Pro version 10.1.4 that are experiencing the same things.  First, one person just changed laptops and the new one has a fresh Windows 7 Enterprise X64 image and new installation of Adobe Acrobat X Pro.  When he used the pdf printer for the first time(after opening the program and accepting the license agreement) he was in MS Excel '07 and chose file>print>Adobe PDF and then the progress bar came up and then showed not responding.  After he did this a couple of times with me standing there I noticed that the save dialog box was opening in the background because I could see the icon blinking on the taskbar.  He said that his old computer never did this and that it would always open up and ask where to save the file and never show 'not responding' on the progress bar.  The other person having the same issue is running the same version but she has had the program installed on her machine for a few months and an older version on before that. 
    Is there a way to make the dialog box show as soon as you print to the Adobe PDF printer?  What is causing this?  Is there another way to create a pdf from MS Office like the add-on? 

  • Print Status Dialog Box

    In my printer simulation, I want to display a dialog box that shows the print status. It should consist of a title bar with the X button, and a message. This message will update each time I change the string it uses. An OK (actually I'd prefer a Close button) should appear after the print queue is empty. And I wouldn't mind a little info icon.
    Here's what I'm currently using:
    JOptionPane.showMessageDialog(null, printStatusMessage, JOptionPane.INFORMATION_MESSAGE);Any way to hide the button and bring it back later? And how do I refresh the message after I change the printStatusMessage string?

    Instead of using a JOptionPane create your own JDialog (see Java Tutorial). Then you can add whatever you want.

  • Photoshop elements 2 print preview dialog box

    I'm running PSE 2 on a PC with Windows XP and an old Dell monitor with 800x600 resolution.  Problem: when I check the "More Options box, the box cuts off  at "Print Space"  And I can't control communication between PSE and the printer.  I've fooled with the windows control panel etc. to try to reduce the size of the dialog box to no avail.  PSE preferences does 't help either.   Am I doomed?

    Are you sure you can't change the resolution to 1024 x 768 pixels?
    Juergen

  • Smart form printing without dialog box

    Hi,
    Thanks to eveyone for reading this post.
    I want to print a form thru smartform. I am able to do that now by calling that smart form and passing the data. Now i wanted to print multiple docs using smartform so that the dialog box printer doesnt apppear and all printing is executed without any user intervention.
    I tried to call smart form in the following way so that data is printed to the printer without any thing appearing on the screen (dialog box).
    I did consult the forums here and when i try it I either see the dialog box or see other sy-subrc.
    Code -
    Data: w_ctrlop TYPE ssfctrlop,
             w_compop TYPE ssfcompop.
    W_COMPOP-tdnewid   = 'X'.
    W_COMPOP-tdFINAL   = 'X'.
    W_COMPOP-tdimmed   = 'X'.
    W_COMPOP-tddelete  = 'X'.
    W_COMPOP-tdcopies  = 1 .
    *W_COMPOP-TDNOPREV  = 'X' .
    W_COMPOP-TDDEST    = 'LP01'.
    *W_COMPOP-tdnoprint = 'X'.
    W_ctrlop-DEVICE    = 'PRINTER'.    " Here we dont give printer name 'KX-P3696'.
    w_ctrlop-no_dialog = 'X'.
    w_ctrlop-preview   = ''.
    CALL FUNCTION '/1BCDWB/SF00000135'
    *CALL FUNCTION v_form_name
      EXPORTING
        control_parameters  =  w_ctrlop
        output_options      =  w_compop
        user_settings       = 'X'
      IMPORTING
        job_output_info    = w_return
      EXCEPTIONS
        formatting_error   = 1
        internal_error     = 2
        send_error         = 3
        user_canceled      = 4
        OTHERS             = 5.
    i would be glad if anyone can help me. I did a few RND in the code above to make it work but it dosent.
    Moreover when the dialog box appears then there is a text in the bar below which says please maintain printer master data. (something like that). Is that creating a problem ?
    Thanks,
    JG

    REPORT  ZANNTEST.
    Data Declarations
    DATA : control TYPE ssfctrlop,"Smart Forms: Control structure
                output_options TYPE ssfcompop,"Smart Composer (transfer) options
                 v_fm TYPE rs38l_fnam."Form Name
    control-preview = 'X'."Preview the output of Smartform
    control-no_dialog = 'X'."Don't show Dialog
    output_options-tddest = 'LOCL'."Spool: Output device
    output_options-tdnoprint = 'X'."No printing from print preview
    Function Module to get Generated Fucntion module of Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZCONEXTNLETTER'  " your created zform
    IMPORTING
       fm_name                  = v_fm
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION v_fm
      EXPORTING
       user_settings            = ' '                         " don't forget this option
       control_parameters       = control
       output_options           = output_options
        PR_PERNR                = '00001019'   " it wil come from ur form parameters
        PR_BEGDA                = '19940101'   " it will come from ut form parameters
    EXCEPTIONS
       FORMATTING_ERROR         = 1
       INTERNAL_ERROR           = 2
       SEND_ERROR               = 3
       USER_CANCELED            = 4
       OTHERS                   = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    this is the best answer for ur requirement..
    lets njyyyyyyyyyyy..

  • Smart Form printing witout dialog box

    Hi Experts,
    I want to print the smart form when i execute the print program witout any dialogbox asking for printer name or other details.
    I am using the following code. By using this i am not getting any dialog box, but its not printing anything.
    DATA wa_outputoption TYPE ssfcompop.
    DATA wa_controlparameters TYPE ssfctrlop.
    wa_outputoption-tddest = 'INFO' .
    wa_outputoption-tdnoprev = 'x'.
    wa_outputoption-tdimmed = 'X' .
    wa_controlparameters-no_dialog = 'X' .
    wa_controlparameters-no_open  = 'X'.
    wa_controlparameters-no_close = 'X'.
    wa_controlparameters-device   = 'PRINTER'.
    CALL FUNCTION '/1BCDWB/SF00000116'
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        control_parameters         = wa_controlparameters
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       output_options             = wa_outputoption
      USER_SETTINGS              = 'X'
          v_whno                     = 'WN1'
          v_sttyp                    = 'ND1'
          v_plant                    = 'WN01'
          v_invrec                   = '1068'
          v_page                     = '3'
          v_invdt                    = sy-datlo
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    Please suggest a solution.

    hi pankaj,
    it looks fine, u r passing correct parameters only but just try..
    just pass these parameters:
    DATA:  ST_CONTROL_PARAMETERS      TYPE SSFCTRLOP
      st_control_parameters-device     = 'PRINTER'. "Output device
    st_control_parameters-no_dialog  = 'X'.       "SAP Smart Forms: General Indicator
    I am using the same, it is working fine,
    can u plese tell wht exactly happening.. is the dialogue is displaying or smethig else. r u calling this from only once or many time base on any conditions check once..r u passing right values..
    call this FM before calling samrtform because u will face problems in PRD and Quality.. if u r already then ignore this.
    c_formname = 'xxxx ut form name'.
    v_fm_name is type rs38l_fnam.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = c_formname
      IMPORTING
        fm_name            = v_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    CALL FUNCTION v_fm_name
    EXPORTING
    * ARCHIVE_INDEX =
    * ARCHIVE_INDEX_TAB =
    * ARCHIVE_PARAMETERS =
    control_parameters = wa_controlparameters
    * MAIL_APPL_OBJ =
    * MAIL_RECIPIENT =
    * MAIL_SENDER =
    * output_options = wa_outputoption
    * USER_SETTINGS = 'X'
    v_whno = 'WN1'
    v_sttyp = 'ND1'
    v_plant = 'WN01'
    v_invrec = '1068'
    v_page = '3'
    v_invdt = sy-datlo
    * IMPORTING
    * DOCUMENT_OUTPUT_INFO =
    * JOB_OUTPUT_INFO =
    * JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5

Maybe you are looking for