Changing default printer using CVI

Hi All,
I am currently developing a project using CVI 5.0.1. In this project I
would like to allow the user to change the default printer or select the
printer to print to.
Can anyone help?
Richard

Use SetPrintAttribute on the Printer Name attribute and specify the name of
the printer in your printer setup.
Best Regards,
Chris Matthews
Measurement Studio Support Manager
"RBL" wrote:
>Hi All,>>I am currently developing a project using CVI 5.0.1. In this project
I>would like to allow the user to change the default printer or select the>printer
to print to.>>Can anyone help?>>Richard>>

Similar Messages

  • CR XI R2 Sp6 - How do you change the default printer used by the Viewer?

    CR XI R2 Sp6
    .NET
    VS2005, C++
    The app selects printer for the job as m_Report->PrintOptions->PrinterName = ss_Device;
    This works nicely for printouts to the printer, but is ignored by the viewer. There, the machine default printer is always selected when I hit the print button.
    Found this which is sortof similar:
    http://forums.sdn.sap.com/thread.jspa?threadID=1275149
    Is there any way to fix this? If no, then is it fixed in more recent versions of CR?

    All of that above can be changed at runtime, but you'd somehow need to figure out what the default printer driver is on each machine and then assign it to the report.
    Yes,but that is exactly what I do. The app normally uses the Windows default printer just as any C++/MFC app will do. On the file menu there is an option to select printer which calls CWinApp::OnFilePrintSetup(); which sets the application default printer setup.
    In the app there is a function to retrieve the default printer:
    CString CLpApp::GetDefaultPrinter()
         PRINTDLG     pd ;
         CString          printer("Failed") ;
         pd.lStructSize = (DWORD)sizeof(PRINTDLG) ;
         BOOL bRet = GetPrinterDeviceDefaults(&pd) ;
         if (bRet)
              // protect memory handle with ::GlobalLock and ::GlobalUnlock
              DEVMODE *pDevMode = (DEVMODE*)::GlobalLock(m_hDevMode) ;
              printer = pDevMode->dmDeviceName ;
              ::GlobalUnlock(m_hDevMode) ;
         return printer ;
    When I print, I do:
    void CSkrivDlg::StartReport(CLpReportJob^ jobb)
         jobb->SelectPrinter("",theApp.GetDefaultPrinter(),"");
         if(m_tillSkrivare)
              jobb->OutputToPrinter(1);
         else
              jobb->OutputToWindow("Fönsternamn", 0, 0, 200, 200, 0, NULL, NULL);
    This works correctly for OutputToPrinter(1);, but not for OutputToWindow() which are simply wrappers for the CR functions:
    bool CReportJob::OutputToPrinter(int nCopies)
         bool rc = true;
         try
              m_Report->PrintToPrinter(nCopies,true,0,0);
         catch (Exception ^e)
              TRACE("
    %s",e->Message);
              m_LastError = e->Message;
              rc = false;
         return rc;
    // OutputToWindow()
    // a,b,c,d = Fönsterkoordinater eller noll för default
    // style = flaggor för fönsterposition
    // window = fönster efter vilket vi dyker upp
    // child = rapportfönstrets handle om vi vill ha den
    bool CReportJob::OutputToWindow(CString Namn, int a, int b, int c, int d, int style, CWnd* window, CWnd **child)
         bool rc = 0;
         CString title="Dummy1";
         title = m_Report->SummaryInfo->ReportTitle;
         CFloaterDlg *Floater = new CFloaterDlg(NULL);               // TODO: Get window
         Floater->Create(IDD_FLOATER_DLG, NULL);
         if(Floater != NULL)
              m_Report->ExportOptions->ExportFormatType = CrystalDecisions::Shared::ExportFormatType::PortableDocFormat;
              Floater->m_Viewer->ReportSource = m_Report;
              Floater->m_Viewer->Zoom(theApp.m_ScreenZoom);
              // Sätt fönsterrubrik från rapporten
              Floater->SetWindowText(title);
              // Puffa på så att den kan ändra storlek på Crystal-kontrollen
              Floater->Size();
              // Visa fönstret om det är stängt
              if(!Floater->IsWindowVisible())
                   Floater->ShowWindow(SW_SHOW);
              rc = true;
              if (child!=NULL) *child=Floater;
         else
              AfxMessageBox("Kunde inte skapa fönster för utskrift",MB_OK);
              rc = false;
         return rc;
    Floater is simply a dialog that holds the Viewer control.
    For some reason does the Viewer not obey the printer selection done in the report

  • Font changes when printing from CVI OI

    TestStand 3.1f1
    CVI 7.0
    We generate text reports and like to have them displayed and printed
    using a fixed width font (the default in TestStand).  From the
    sequence editor, selecting the print button from the report tab of a
    completed execution yields a correctly printed page.  However, the
    print button on the ReportView in the CVI Full-Featured Operator
    Interface prints with a variable width font.  The reports appear
    on screen correctly in both the sequence editor and the OI.
    Thanks,
    Peter

    Hi
    There is one workaround.
    You can change the report Font for text reports from your current font to Courier New.
    That should print correctly.
    Hope this helps.
    Regards
    Anand Jain
    National Instruments

  • Changing Default Print Quality for Photosmart Printers in Stand Alone mode

    Hello Everyone. I am using a group of Photosmart Printers in Stand Alone mode for events where I shoot and print on site. Although I have quite a few printers with me (6 total at a time), I prefer to have the printers print in "Normal" Print Quality Mode, instead of "Best". Images come out twice as fast, and because I have a disciplined shooting technique, I get "GREAT" results from the "Normal" setting. I and/or my assistant have to go to my "Preferences" to change my Print Quality everytime we prepare to print another batch of photos. Sometimes we have groups that will want 5 copies, and it simply takes FOREVER in Best mode, and really, although with a 5x Loupe I can tell the difference, My customers can't with their naked eye. Sometimes we forget to change the setting due to the pressure of the pace sometimes. OOPS!
    I am using the following Photosmart Printers: A516, A512v and the 335.
    As I stated, I don't use these with a computer, I drive them straight from CF Cards. I do have all the original software, if I need to use the computer to make some changes. Just tell me how. Manual says nothing about getting the setting to default to normal.
    Thank you so very much in advance.
    BLAYZE!

    Hello:
    One way of assuring high quality would be to export the photo to the desktop (at highest quality) and then print from there.
    In my own case, I find that when I occasionally print a photo from iPhoto, the quality is quite good.
    Barry

  • How to change default printer in tx me28

    Hi Experts,
    How can I change the default printer in tx me28? I have checked the customizing but I don´t know in which point I can change the default printer.
    Thanks!

    Hello,
    If the client is Windows, you can use the following:
    host('cmd /c Rundll32 Printui.dll PrintUIEntry /y /n "the_printer"');Francois

  • Changing default printing shortcuts

    I want to change the default printing shortcut.  It is currently set to "General Everyday Printing".  I would like to change it to "Fast/Economical Printng".  When I go to Preferences, Printing Shortcuts tab, and click on "Fast/Economical Printing" there is no option to make this the default shortcut.  When I click on "General Everyday Printing", change the features to resemble Fast & Economical printing, it will only save the new features under a new name, but not as a default.  
    I have an All in One J6480
    Message Edited by Holmanranch on 03-21-2009 10:04 AM
    Message Edited by Holmanranch on 03-21-2009 10:04 AM
    This question was solved.
    View Solution.

    Binary Zen,
    Thanks, but that only works for the currently selected Printing Shortcut.  Following your instructions for , say, "General everyday Printing", after going back into the Printing Preferences afer saving, if you select another Printing Shortcut (say "Fast/Economical Printing") and then back onto "General everyday Printing", the papaer size reverts to "Letter".
    Like most people in the UK, I NEVER use "Leeter" size paper.  Why is there no way to save changes to the default "Printing Shortcuts" in Vista (I believe you can in XP)?  If I pick any of the shortcuts, I have to remember to change the paper size each time.
    I have been in lengthy conversations with HP support staff, and the best they can come up with is to use the generic c990 printer driver (which obviously has limited functionality).

  • Change default print settings in PS

    I was wondering if anyone knows how I could change the default print settings so that crop marks and labels are turned on by default.  I've tried using automator, and making an action but haven't had any luck.  Thanks.
    Marcus

    anyone??
    It would also be nice to have a default set of commands under print settings, like paper size, media type, color management, etc.

  • Changing Default Printer

    Hi Oracle Masters,
    Is there any way to get the default printer name at runtime, so that to specify it in DESNAME ??
    As i want to assign different printer to specific module in my application.
    Thank You

    So, you're using Webforms. Just to clear something out, which default printer name do you mean? The Server default printer or the client?
    You're sure aware that the Reports Server is running on the server, and therefore you must mean the default printer of the server. Right? Since the default printer almost never change, I would create a key in $ORACLE_HOME/reports/conf/cgicmd.dat and use this when printing.
    //Martin

  • Changing default printer in Purchase order

    Hi
    This is Mohammed. Khan, when we are working with these purchase Order T-codes (IW32, IW21, IW28, IW38) When ever we are trying to give purchase order print, than automatically it will take $MECH,at present this printer is not available in our landscape, if there I donu2019t know where this printer is defined exactly, I am searching this particular printer in Output devices(SPAD) but this is not available in that list, can any body tell me how to change the default printer, from purchase order printing list, and also let me know how to set different printer in the place of $MECH printer..
    Thank you,
    Regards,
    Mohammed. Khan

    Hi
    Try checking NACE transaction, for your output type the default printer assigned (in communication method). And also check defaults tab in user record in SU01 tcode.
    Thanks

  • How to set a default printer using vbs on windows 2008 R2 with remote desktop services

    Hello
    It seems I wasn't in the right places before / threads. BIG Sorry.
    Here's the problem: I have this VBScript:
    On any computer, the Default Printer "HisBadPrinter"
    strPrinterName = "mySuperPrinter"
    Set objPrinter = Helper.CreateObject("WScript.Network")
    objPrinter.SetDefaultPrinter strPrinterName
    In Xp, Windows 7 it work perfect, The default printer is being changed.
    But in Remote Desktop on Windows Server 2008 R2 it is not working, with any type of account (Administrator, user, powerUser...) "HisBadPrinter" is always the default printer and it's always printing on it without any error messages.
    Help Please.

    Ok, here what I have in my ControlPanel > Devices and Printers
    Adobe PDF (redirected 3)
    Brother HL-4150CDN series on infovm1dc (redirected 3)
    Generic / Text Only (redirected 3)
    HP Color LaserJet 3800 PCL 5c on infodc3 (redirected 3)
    Microsoft XPS Document Writer
    Microsoft XPS Document Writer (redirected 3)
    PDFCreator (redirected 3)
    Now Here what I got when I executed the bit of code :
    TS011
    Adobe PDF (redirected 3)
    TS013
    Microsoft XPS Document Writer (redirected 3)
    TS012
    Generic / Text Only (redirected 3)
    TS015
    Brother HL-4150CDN series on infovm1dc (redirected 3)
    TS016
    HP Color LaserJet 3800 PCL 5c on infodc3 (redirected 3)
    TS014
    PDFCreator (redirected 3)
    TS002
    DIRECT - Brother HL-2460 (redirected 2)
    TS006
    PDFCreator (redirected 2)
    TS003
    Fax (redirected 2)
    TS005
    Microsoft XPS Document Writer (redirected 2)
    TS007
    Brother HL-2460 on infodc3 (redirected 2)
    TS004
    Microsoft Office Document Image Writer (redirected 2)
    TS001
    Brother HL-4150CDN series on infovm1dc (redirected 2)
    XPSPort:
    Microsoft XPS Document Writer
    There is no printer called "\\ALPHA\HP LaserJet P2015 Series PCL 6".
    OK  

  • Change default print settings

    I want to change the default print settings on Firefox 6.0.2 such that the headres, footers, etc. are not printed when I print a web page.

    Firefox button > Print -> Page Setup

  • Mac OSX Reader 10.1.2 – Cannot Change Default Printer From "Any Printer"

    With Mac Acrobat Reader 9.x it was possible to use Page Setup to set the default printer from “Any Printer” to one of our choice.  Once set it was possible to print many documents without having to go back and reset it every time.  In other words it would ‘remember’ the setting.
    Mac Acrobat Reader 10.1.2 does not remember the setting of the printer in the Page Setup dialogue and keeps reverting to "Any Printer" between printing; either from the same document or multiple documents.  Thus on each occasion I need to print I need to go to Page setup and reselect the printer.  Irritating, and time wasting.
    Now this would not matter if there were not a slight, but nevertheless significant, improvement in print quality between a document printed with the correct printer and “Any Printer” selected in Page Setup.
    NOW, before you all jump in with suggestions read this:
    1:  I do have the printer selected as the default printer in System Preferences (no difference anyway).
    2:  Selecting printer in the Print dialogue makes no difference to the print quality.  It MUST be selected in Page Setup.
    ADOBE, can you please get Mac Acrobat Reader X (10.x) to revert to the same behaviour as Reader 9.x ?
    Thank you.

    The same problem exists in Reader 11.0 for Mac.  In my case, it defaults to our specialty photo printer instead of the workhorse laserprinter.

  • EPSON Stylus Color 1160 changing default print quality under 10.4

    Greetings.
    I have the above printer and since Epson no longer produces a driver that will function under 10.4 I am using the Gimp driver. Which works fine.
    The printer is connected to our server and so functions as a ‘shared printer’ in the network. The server runs 10.4.8.
    However I would like to tweak the default settings for all users.
    One of the things we use this printer for is to make drafts for checking text or layouts. The default setting is for an excellent print quality. I would like to change this to a lower resolution (saves ink > saves money > saves planet > reduces carbon footprint, ;-)))
    Anybody knows how to do this?
    Thanks

    Greg good morning,
    It did solve it partly. Here is what I have now. If printing directly from the computer the printer is connected from now is no problem, the settings have changed.
    However as this is my server (the Epson is connected to it via USB) printing from the other machines have not changed the standard dialog box.
    When I try access the Epson setup via http://127.0.0.1:631/printers on the individual computers I get:
    Forbidden. You don't have permission to access the resource on this server. <</div>
    Any suggestions as to how to solve this so I have there also the standard box changed? Reason is of course that on the individual computers the dialog is generated locally and their settings are following the standard rule than send to the printer, bypassing the setting of the printer. So question is, how to get in to this dialogue?

  • How do I change default printer settings in Lion?

    I just got a new MacBook Pro and after installing the correct drivers and setting up my printer, it now prints 2-sided by default.  How do I change this default setting?
    I'm using a MacBook Pro, OS X 10.7.4, printing over AirPort to a KonicaMinolta office machine.  I had this same setup with my old MBP (OS X 10.6.8) with no problems whatsoever.

    Many vendors have started releasing printer drivers that have been defaulted to two-sided (duplexed). I would assume that the printer driver you are using on 10.6 is an older version compared to that being used on Lion.
    There are two possible actions. One is to create a Preset that has the driver set to single sided and use this preset when you don't want duplex. The other is to modify the PPD for the printer so that it is set to single sided by default.
    Making a Preset is easy. Open a document and select to print. Make the changes in the print dialog to set single sided printing and then open the Presets menu and choose to save this change for this KM printer. Then whenever you print to the KM just ensure the Preset is set to whatever name you gave to the single sided setting.
    As for modifying the PPD, this is done via the CUPS web page.
    To access CUPS, open Safari and type
    http://127.0.0.1:631/printers
    This will open the CUPS Printer administration page and will show all the printers currently configured on the Mac. For the printer that you wish to change the defaults for, click its name in the Queue Name column.
    Clicking the printer name will open the printer administration page for that printer. Here you need to click on the Administration drop menu and then select Set Default Options.
    This will show a new page with four menu headings (links); Options Installed, General, Banners and Policies. Select General. Scroll down the list until you find an entry like "Finishing" or something similar that shows the single sided and two sided setting. Change this from 2 sided to 1 sided.
    With the option selected you then need to scroll down the list to the bottom of the page where you will see the ‘Set Default Options’ button. Click this button and you will then be presented with an authentication window. Enter the account name and password that has been set as the admin for this Mac. And then press the Log In button. You will then see another page stating that the information change is completed.
    Now you can open an application and select to print and then check the output is set to single sided.

  • Changing default printer settings in SAP Portal

    Hi,
    When i am trying to print the report in SAP Portal, the default page setting is A3 , i need to change it to 8.5 * 11 inches.
    Is it possible??
    Thanks
    Janc

    Hi,
    You can change the Page Settings in your Internet Explorer.
    File --> Page Setup.
    Try doing this.
    Are you on BI 3.5 or 7.0?
    Also, you are using the Query Designer or WAD ?
    In WAD7.0 you can Export the Template with the Query and set the size as A4 or 8.5 x 11 inches.
    While viewing the Query designer output also, you select the size. Default is A4.

Maybe you are looking for

  • MacBook looses WIFI and freezes frequently

    Hello there! Since a few days, my MacBookPro Mid 2009 frequently looses the WIFI connection and freezes (not both at the same time). Both problems started to occur at about the same time, so I think there may be a connection. The WIFI just looses con

  • How can I repair 10.6.8 when the disk my computer came with is 10.5.4?

    Ran Verify Disk and received the following message: "This disk needs to be repaired. Start up your computer with another disk (such as your Mac OS X installation disc), and then use Disk Utility to repair this disk." I attempted to do this but while

  • NPE in AutoRegisterActionServlet.ensureModuleRegistered

    Not sure if this is a Server- or Workshop-related question, but here goes.           In the log file below, it appears that perhaps a module in our enterprise app has undeployed itself. Does this cause, or is it caused by, the deserialization error r

  • I think my phone is stolen

    hello, i bough a blackberry 8520 , from a guy, he didnt said from where he got it ... but i think it is stolen, i cant use the aplications (blackberry app world) ... i am from romania , with orange carrier ... i have the blackberry option activated (

  • HT201209 How do I change security questions? It tells me answers are wrong when they are right answers?

    I want to use ITunes funds to purchase items and I cannot get past security questions. I answer them right and it says they are wrong. I am frustrated. What can I do to fix this?