Printing labels from CVI using ActiveX and WORD

I'd like to print labels from CVI. I managed to create the label type I need
in WORD. Now I want to use that in CVI. The following macro describes exactly
what I want. Maybe someone can translate this to CVI, please ???
Sub Macro2()
' Macro2 Macro
' Macro recorded 17-02-00 by IT-Systems
Documents.Add Template:= _
"C:\Program Files\Microsoft Office\Templates\Normal.dot", NewTemplate:=
False
Application.MailingLabel.DefaultPrintBarCode = False
Application.MailingLabel.CreateNewDocument Name:="10.63230", Address:=""
, AutoText:="ToolsCreateLabels1", ExtractAddress:=False
End Sub

We do not have an example that will do *exactly* what you need, but you should
find an ActiveX example program, either in the CVI samples folder or on the
Example Programs Database, that illustrates how to print a document in Word.
The function you will need to call that actually invokes the print method
is Word_DocumentPrintOutOld. It's defined in word2000.h; the prototype,
in case you were curious is:
HRESULT CVIFUNC Word_DocumentPrintOutOld (CAObjHandle objectHandle,
ERRORINFO *errorInfo,
VARIANT background, VARIANT append,
VARIANT range, VARIANT outputFileName,
VARIANT from, VARIANT to, VARIANT
item
VARIANT copies, VARIANT pages,
VARIANT pageType, VARIANT printToFile,
VARIANT collate,
VARIANT activePrinterMacGX,
VARIANT manualDuplexPrint);
"Han Stehmann" wrote:
>>I'd like to print labels from CVI. I managed to create the label type I
need>in WORD. Now I want to use that in CVI. The following macro describes
exactly>what I want. Maybe someone can translate this to CVI, please ???>>>Sub
Macro2()>'>' Macro2 Macro>' Macro recorded 17-02-00 by IT-Systems>'> Documents.Add
Template:= _> "C:\Program Files\Microsoft Office\Templates\Normal.dot",
NewTemplate:=>_> False> Application.MailingLabel.DefaultPrintBarCode
= False> Application.MailingLabel.CreateNewDocument Name:="10.63230",
Address:="">_> , AutoText:="ToolsCreateLab
els1", ExtractAddress:=False>End
Sub>

Similar Messages

  • I am trying to print labels from my address book, and when I change it to have the first names first, only some names work.  Does anyone know what the problem is or how to fix it?

    I want to print labels from my address book, but when I try to put first names first, only some will work.  Does anyone know why this is happening and how to fix it?

    Hi MollyPhloot07,
    I'm glad you found the coupons.com app and you might also want to take a look at the GroceryIQ app from the same company.  Please note that at this time, printing is only support from iPad to HP wireless inkjet printer.  That's most likely the reason why your Canon isn't displaying when attempting to print.  The other way to go might be emailing the coupons you want to your email address, then open that email and print from a conventional desktop or laptop computer.
    Hope this helps!
    Coupon Support

  • HT4356 printing page from facebook using picture and airprint page in upper left quadrant with words and margin cut off

    I have a ipad 4 with 6700 hp printer. I was told by support that the way to print a page from facebook was to take a picture of the page and then print the picture. When I do this the picture is printed in the upper left hand quadrant with part of the wording cut off. Is the only or best way to print from facebook and how can I fix the location of the print. Seems Hoaky to me
    Luther288

    Well after weeks of anguish, trips to the apple store (not very professional ), calls to Apple support (no help), calls to HP support, they transfered me to airprint support who actually told me how to fix my problem. For an HP printer download from the app store HPAIO remote print. You have to search on AIO remote print. Installed this app and now I can make the print work like I would like. Good luck

  • Text Message sent from LabVIEW using ActiveX and Internet Explorer

    I am fairly new to LabVIEW and I am trying to make a VI that will be able to text me and let me know when a test is about to be done or if something has caused it to shutdown.  My VI uses www.onlinetextmessage.com but I can't get it to click the Send Message button. 
    I can get it to insert text in the text fields.  I just can get it to click send.
    Can you help me?
    Solved!
    Go to Solution.
    Attachments:
    My Texting.vi ‏38 KB

    MoonMan wrote:
    Well it sure seemed like that should have worked but no luck. When I try to add the FormElement with submit in my VI after I wire in the reference wire it automaticaly changes to a regular Element.  Then it wont run because submit is not an option for Element, I have to change the submit back to click. 
    I dont understand, it really seems like the click should work, and it seems like the submit should have also worked.  Getting text into the different fields was easy enough.
    Did you try my modified version?  That uses IHTMLFormElement properly.  If you then change the element name from "Send Message" to "txtmsg" (the name of the form), it appears to work - or at least, it pops up an advertising window in Internet Explorer (I didn't fill in any of the fields as I don't want to give out my phone number or email address to some random website, especially one that pops up advertising).
    When you try to change to FormElement, what steps are you taking?  Are you changing the type of the "type" input to Variant to Data?  You'll need to right-click on that constant, Select ActiveX Class... and choose IHTMLFormElement.
    As a LabVIEW style note, you should close all the ActiveX references you open.  That means all the references (IHTMLFormElement, IHTMLElementCollection, etc) need a Close Reference when you're done with them.
    Again, I think sending an email is a better way to send a text message from within LabVIEW, and for that matter, you might be able to find a better website for doing it.  TMobile allows their subscribers to send SMS messages through their website and it appears that AT&T provides a similar service; Verizon provides a web page to send SMS to their users.
    EDIT: by the way, the submit button is not a named element (it has a "Value" property but not a "Name" property) so you can't get a reference to it by name.  If you probe the item output of the IHTMLElementCollection property node, you'll see it returns an empty variant, which is why "click" has no effect.

  • ActiveX and Word

    All,
    I am in the process of parsing documents and creating a Word 97 document.
    This document only contains a table. I was able to successfully create the
    table,
    change the column widths, and add headers. One of the columns contains comma
    delimited variables. I am trying to select the column and then replace the
    "," with
    . The code snippet below was one of the many attempts to do this:
    err = Word_SelectColumn( tableHandle, 3 );
    err = CA_VariantSetCString( &vtFindText, "," );
    err = CA_VariantSetCString( &vtReplaceWith, "^l" );
    err = CA_VariantSetLong( &vtReplace, WordConst_wdReplaceAll );
    err = CA_VariantSetLong( &vtWrap, WordConst_wdFindStop );
    err = Word_GetProperty( tableHandle, NULL, Word_SelectionFind, CAVT_OB
    JHANDLE,
    &findHandle );
    //Word_FindClearFormatting( findHandle, NULL );
    //Word_ReplacementClearFormatting( findHandle, NULL );
    err = Word_FindExecute( findHandle, NULL, vtFindText, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL,
    CA_DEFAULT_VAL, vtWrap, CA_DEFAULT_VAL,
    vtReplaceWith, vtReplace, &status);
    Word_FindExecute expects a Find Obj but the call to Word_GetProperty yields
    an error.
    Any help would be greatly appreciated.
    Thanks.
    Randy Schmidt
    DAQtech, Inc.

    We do not have an example that will do *exactly* what you need, but you should
    find an ActiveX example program, either in the CVI samples folder or on the
    Example Programs Database, that illustrates how to print a document in Word.
    The function you will need to call that actually invokes the print method
    is Word_DocumentPrintOutOld. It's defined in word2000.h; the prototype,
    in case you were curious is:
    HRESULT CVIFUNC Word_DocumentPrintOutOld (CAObjHandle objectHandle,
    ERRORINFO *errorInfo,
    VARIANT background, VARIANT append,
    VARIANT range, VARIANT outputFileName,
    VARIANT from, VARIANT to, VARIANT
    item
    VARIANT copies, VARIANT pages,
    VARIANT pageType, VARIANT printToFile,
    VARIANT collate,
    VARIANT activePrinterMacGX,
    VARIANT manualDuplexPrint);
    "Han Stehmann" wrote:
    >>I'd like to print labels from CVI. I managed to create the label type I
    need>in WORD. Now I want to use that in CVI. The following macro describes
    exactly>what I want. Maybe someone can translate this to CVI, please ???>>>Sub
    Macro2()>'>' Macro2 Macro>' Macro recorded 17-02-00 by IT-Systems>'> Documents.Add
    Template:= _> "C:\Program Files\Microsoft Office\Templates\Normal.dot",
    NewTemplate:=>_> False> Application.MailingLabel.DefaultPrintBarCode
    = False> Application.MailingLabel.CreateNewDocument Name:="10.63230",
    Address:="">_> , AutoText:="ToolsCreateLab
    els1", ExtractAddress:=False>End
    Sub>

  • Exporting figures to word from labview using activex??

    Does anybody know how to export figures into MS Word, XP edition from LabVIEW using activex. I am not using the report generation toolkit...dont have it....help wld be appreciated
    kuttu

    Here are some examples you can use. they all use activeX. One is even a toolkit I got from somewhere.Try these and if you have any more questions let me know.
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    word.zip ‏1226 KB

  • Print labels from SDK

    I need to be able to print labels from within SDK but I want to make the label format accessible by my customer. Does anyone know of a way to link in to something like ALD from SDK?
    Gordon Wood

    Gordon,
    The SDK does not have a facility for accessing the PLD or the ALD products.  You can use the Report Service to capture print information and parameters to send to a third-party report writer such as Crystal that you can then use.
    Eddy

  • Printing Labels from BT Yahoo Mail Contacts

    The BT Yahoo Help on this topic shows that you can print address labels from your Contact list and choose to print to an Avery Address label template (several choices shown). http://help.yahoo.com/uk/bt/tutorials/cont/con_workcon6.html#help
     When I access this I can't see the Avery options only the Basic or the Detailed Layouts. Can anyone help please? 

    Bear in mind that BT are moving away from Yahoo, so very soon, you will not get access to your Yahoo stuff.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Printing labels from Address Book

    Hi there,
    I have tried to print labels from Address Book using the provided template within the application.
    The probem however, is that if I want to print a number of labels, say for myself, I can not seem to specify how may labels to print with a selected address.
    As well, if I print one label from the application, I do not see a way to tell the printer or the application to use the next field of the label sheets.
    Am I missing something completly obvious or is it an oversight in the Application?
    Thanks in advance

    Jim,
    I think I understand your question. Hopefully this will help you with at least one of your problems. In order to print out address labels for just your name and address, you'll have to duplicate your personal address card several times. I duplicated mine 29 more times so that I could print out 30 sticky labels. Here's what I'd suggest:
    1. Create a new group in the far left side of your Address Book window by clicking once on the "+" button found at the bottom of the Group column, and then title your new group something like "My Return Labels."
    2. Locate your main personal card in the "All" group, and then slide it (or add it) to your newly created group.
    3. Highlight your card from within your new "My Return Labels" group, copy and paste it about 29 times.
    4. Once done, make sure you have just your "My Return Labels" group highlighted, then go to your Print command.
    5. Choose the proper label style, and print away.
    Good luck, Grampa Doodie.
    PBG4-15 1.67GHZ, eMac, G4 Tower, iMac (Graphite), iMac (BB).   Mac OS X (10.4.2)  

  • Re: Printing labels from iCloud Contacts.

    I'm trying to print labels from iCloud 'Contacts'. I have a MacBook Air (which I now use all the time) as well as a wonderful but ancient iMac which I use occasionally.  My printer is only connected to my iMac so I want to print my multiple contact labels from there. When I log into iCloud wanting to print my Group 'Christmas Card Contacts' list, the print settings don't allow me to set up the page to choose labels (Avery, J8160 or any other).Any idea how I can achieve this please?  I feel I've gone backwards because I never had any trouble doing this from my old Address Book on my Mac but, since iCloud, I haven't keep the old Address Book up to date.  I had no idea it would be necessary.  It shouldn't be necessary!!  All advice gratefully received but I suspect I'm asking the impossible unless/until Apple remedy this defect. Thanks.

    You can't.  On some label layouts you can reverse the page and it will print on the remaining labels.  Just limit the number to be printed to the number of labels remaining.
    I don't know if there are any label printing apps that can let you insert a number of blank labels before your labels so you can start somewhere in the middle of a sheet of labels. You may have to do a google search for label printing apps for Mac and contact customer support for them to see if one can start in the middle of a sheet.  It can be done with FileMaker Pro but that's a pretty costly app for just printing labels.

  • How do you print labels from contacts off the MacBook

    I am trying to print labels from contacts in my Macbook Pro.  I've done it before and now I can't remember how

    Hello there, mamajanie55.
    The following Knowledge Base article offers up some information on how to create labels and such from your Contacts:
    Contacts: Print contact information
    http://support.apple.com/kb/PH11608
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to print labels from my Christmas card list?

    Does anyone know how to print labels from the Christmas card list in Contacts?
    I am new to computers and having managed to type in all my addresses I was hoping to print some labels!    Please can anyone help!

    Welcome to the Support Communities. What version of OS X is your Mac running? ...Click on the  menu at top left of your screen and choose About This Mac. Note the version in the form 10.n.n and then see this ASC tutorial:
    Update your product list
    Then see this Apple doc, which is for OS X 10.9 (Mavericks)...
    Contacts (Mavericks): Print contact information
    ...Found by searching here:
    http://support.apple.com/kb/index?page=search

  • Calling LabVIEW from C# Using ActiveX?

    Hi,
    I try to call LabVIEW VI's from C# using ActiveX/COM, but I am not
    successful. I was able to do this from C++ and there are nice articles on
    the NI site dealing with the C++ integration.
    I tried to follow the instructions of the C# help, using a wrapper for the
    LabVIEW application call. I included the TypeLib that I created with the
    tlbimp-tool in my project. Basically my code looks like this:
    LabView50TypeLib._Application myLV = new
    LabView50TypeLib.ApplicationClass() ;
    LabView50TypeLib.VirtualInstrument myVI = new
    LabView50TypeLib.VirtualInstrument();
    myVI = myLV.GetVIReference(,?,?);
    myVI.SetControlValue();
    myValue= myVI.GetControlValue();
    myLV.Quit();
    I even don't know if the fi
    rst line is correct. I know that the second line
    is not OK, because there is no class "VirtualInstrument" - but from what
    class should I derive my instance for the VirtualInstrument? And different
    from my C++ implementation, the GetVIReference now needs 3 parameters
    instead of 1 (the path).
    What am I doing wrong? Does anybody have a working example on this?
    Thanks a lot & best regards,
    Martin Schellenberger

    Hello
    After adding a reference to the LabVIEW type lib to the project (I just to o to Project >> Add Reference and I browse for the typelib myself), and including the labview namespace at the top,here is what I tried
    using LabVIEW;
    //form code here
    //Event for button code
    LabVIEW.Application lv = new LabVIEW.ApplicationClass();
    LabVIEW.VirtualInstrument vi= lv.GetVIReference(@"c:\a.vi","",false);
    vi.FPWinOpen=true;
    vi.Run(true);
    So all it does is it opens the VI and runs it, seems to work fine. Hope this helps
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • How can I use excel and word on the IPAD2

    How can I use excel and word documents on my Ipad 2

    There are apps such as Documents To Go which support reading/editting/creating those sorts of documents :
    standard version  -  http://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
    premium version  -  http://itunes.apple.com/us/app/documents-to-go-premium-office/id317107309?mt=8

  • How do I change an hp officejet j6400 printer change from color to black and white?  I have a Mac 10.8 OX system

    How do I change an hp officejet j6400 printer change from color to black and white?
    I have a Mac 10.8 OX system

    Hi JasperNM,
    You may access a card within the cart reader by mapping a network drive to access it, then you may transfer the fies to your Mac.
    First locate the printer IP address as following:
    Follow these steps to print a Wireless Network Test Report, the IP address will be listed within that report:
    On the control panel, press the Setup button ( ).
    Press the Right Arrow button ( ) to scroll to Network Setup , and then press the OK button.
    Press the OK button to select Print Network Settings .
    Press the Right Arrow button ( ) to scroll to Wireless Test Report , and then press the OK button. The Wireless Network Test Report prints.
    Now map a network driver by following the steps below:
    Click the Finder icon on your Mac.
    Click the Go menu.
    Click on Connect to Server.
    In the Server Address field enter “smb://ipaddress of the printer” and click on Connect.
    You will be prompted to enter the password. leave it as is and click on Connect.
    The Memory card will be mounted as a disk in the Finder.
    Shlomi

Maybe you are looking for