Active X and word object 8

Hi,
I am trying to open a document in word 97 then send the cursor for that document
to pre-defined bookmarks and type some text. The document opens OK but the
cursor stays at the top of the page. Also when I shut down and try to dicard
the cursor objectHandle I get an error of invalid handle. Most of the code
I am using comes from the cvi example.. anybody know what I am doing wrong
Mike
if (!appHandle) {
errChk (Word_NewApplication (NULL, 1, LOCALE_NEUTRAL, 0,
&appHandle));
errChk (Word_GetProperty (appHandle, NULL,
Word_ApplicationDocuments,
CAVT_OBJHANDLE, &docsHandle));
CA_VariantSetCString (&fileNameVt, logfilename);
CA_VariantSetCString (&bkMrkNameVt,"accuacy");
Word_DocumentsOpen(docsHandle, NULL,fileNameVt , CA_DEFAULT_VAL,
CA_DEFAULT_VAL,
CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL,
CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL,
CA_DEFAULT_VAL, CA_DEFAULT_VAL, CA_DEFAULT_VAL,
&docsHandle);
errChk(Word_DocumentActivate (docsHandle, NULL));
errChk (Word_GetProperty (appHandle, NULL,
Word_ApplicationSelection,
CAVT_OBJHANDLE, &currSelHandle));
errChk (Word_SelectionGoTo (currSelHandle, NULL, gotoBkMrkVt,
CA_DEFAULT_VAL, CA_DEFAULT_VAL, bkMrkNameVt,
NULL));
errChk (Word_SelectionTypeText (currSelHandle, NULL, "AAAAAA"));
errChk (Word_SetProperty (appHandle, NULL, Word_ApplicationVisible,
CAVT_BOOL, VTRUE));

I have run your code and cannot get it to recreate an error. I even tried to add more things to it but still to no evail. What version of word are you using. i did this under word 2000 and it works just fine
Joe.
"NOTHING IS EVER EASY"
Attachments:
minimal[1].vi ‏122 KB

Similar Messages

  • Apple should do something for the equipment stolen something like block and only activated by key words given to register the device on the apple's website

    Apple should do something for the equipment stolen something like block it(them) and only activated by key words given to register the device on the apple's website

    Tell Apple:
    http://www.apple.com/feedback
    Doubtful that this would happen.  Privacy laws would likely be tested with this.
    No manufacturer does this.

  • Under FI Auth Object F_BKPF_BUK is Activity 7 and 77 considered update?

    Does the Activity 7 and or 77 alone or in combination with any other Activity in Auth Object F_BKPF_BUK give access greater than read or Display?

    Hi,
    01     Create or generate
    02     Change
    03     Display
    06     Delete
    07     Activate, generate
    08     Display change documents
    22     Enter, Include, Assign
    43     Release
    77     Pre-enter
    C4     Decrypt Payment Card
    activites for auth object F_BKPF_BUK .

  • Trouble selecting and moving objects near text in Adobe Illustrator? Try this.

    It's been 4 years since I left Corel DRAW for Adobe Illustrator. One thing I could never get used to is the crazy way text has an impenetrable invisible sheet over it making it hard to select objects near or behind it.
    With Corel DRAW I was used to be able to select text by simply clicking on the visible area of the text. Selecting stuff behind the text by clicking between letters or right next to a decender was never a problem. But Illustrator is a different story.
    Tonight I finally found a way to make selecting text in Illustrator behave more like Corel DRAW.
    I wrote it up here: http://www.johnstanowski.com/blog/trouble-selecting-and-moving-objects-near-text-in-adobe- illustrator-try-this/
    Just thought I'd share! 

    It's not spam, but thanks for assuming.
    I was up really late writing that blog post. Posting a link was the quickest way to share and be able to go to bed.
    Plus it's rather lengthy. I thought that would be rude to use an Adobe forum for my articles.
    If you saw my blog you will have seen there's not much going on there at all, and no calls to action to hire me. I don't have anything to gain by getting traffic.
    And, yeah, layers work for selecting, but that slows you down. Who would want to look away from their work to find and select a layer when they're trying to tweak positions of objects? Layers suck for selecting quickly.
    And there must be something wrong with me but I find using Type Object Selection by Path Only by itself hard to use. I'd really just like to click on the text itself rather than an invisible hairline you have to probe to find.
    Here's the post. I hope people who had trouble like me find it helpful.
    Do you have trouble selecting objects near Point Type in Adobe Illustrator? You’ve been there. You want to select an object. Problem is, it’s really close to piece of Point Type. All too often we try to select objects that wind up being unreachable because they lie too close to a piece of Point Type, which we wind up selecting instead. Luckily, after years of angst, I discovered a solution.
    Point Type in Adobe Illustrator is funny. There’s this invisible “shield” around it. This shield is much larger (at least it seems that way) than the text itself. It prevents you from selecting objects behind text by clicking between letter and words. This shield is particularly meddlesome with lowercase letters and decenders because we think surely we can click on that blue box (or whatever) because it seems far enough away from that Point Type. But the lowercase “g” in the Point Type’s territory.
    Okay, now that we know we’re talking about the same thing, let’s move on to the solutions.
    Step 1. Check ‘Type Object Selection by Path Only’ in Preferences
    You’ll find this option in Preferences/Type. Click it and that nasty text shield goes away. But there’s a price to pay. With this option activated, the only way you can select your text is by clicking on the text path, a super, tiny, thin baseline thingy under all the letters, but above decenders. It’s really hard to grab. To do it right you need to slowly approach the text path with your cursor. When you’re right over it, Illustrator will let you know by adding a small black square to your cursor. Now, you can click, hold and move your text. But this workflow can really slow you down and break your rhythm, maybe even more so with it turned off.
    Step 2. Add the ‘Outline Object’ Effect
    Select your Point Type and, from under the Effects Menu/Path/, select Outline Object. This effect does something really sweet to text in Illustrator: it lets your Point Type objects be treated as if their were converted to Outlines. You can still edit the text, but as far as selecting it, Illustrator now considers it outlines and shapes instead of a text object. Basically, it now considers the Path of the text to be the text itself! Now, since we’ve already checked ‘Type Object Selection by Path Only’ we can now click on the text to select it. Just the text. Not the baseline, not the wacky invisible shield surrounding it.
    And now… you can select things behind the text by clicking between words and letters. And the ONLY way to select Point Type is to click on the visible parts of the text itself! Problem solved.
    Potential Problem:
    Too much of a good thing could be a bad thing. Let’s say you have some Point Type set in a very light face and it’s pretty small or you’re zoomed way out. Selecting that text could be a problem since you have to actually click on the text itself. Actually it isn’t that hard, it may just require an extra click to grab it. If you have a set of smaller, light-faced bits of text, you can elect to just not apply the Outline Object effect to these. They’ll get their ‘shield’ back and be easier to click on. And since they’re so small, they don’t pose a problem with selecting things behind them anyway.
    Applying this technique to your old files
    Now that you’ve learned this awesome new way to work around type in Illustrator, you may be anxious to open yesterday’s project and get back to work. But you may be not be looking forward to applying the Outline Object effect to each and every piece of type. For this you can use Illustrator’s “Select Same” feature. Select one piece of text. Then from the Select Menu click on Object/Text Objects. Now ALL of your text objects will be selected, and you can apply the Outline Object effect to all of them at once!
    That’s it. If you build ads or work with a lot of type in Illustrator, you’re about to be able to work a lot faster… and happier.

  • Can I mix Pages page layout and word processing together in one document?

    Hello there ! I am quite new to Pages and I am desperate to learn as i want to get rid of everything being Microsoft
    As you all know when you open Pages you can choose between page layout and word processing !
    the thing is i thought that after using a page layout you could just go with word processing easily... well no, you can't, but i'm sure i'm missing something...
    For exemple i really like the catalogue brochure and it would be perfect for me to start a project... but after a few pages, i can just add blank pages and if i want to type text, i have to add text boxes... i don't want that, I want word processing... and another thing in this brochure i can't add table of content because it is not by default in the template...
    So my question is quite basic here, can we link Page layout and word processing without having to use text boxes and everything ?
    Thanks in advance !
    Have a good day

    Alexander,
    Welcome to Apple discussions.
    The simple answer is no. What differentiates page layout from word processing mode is that the PL mode has no text layer. So everything that goes on the page must be an object of some kind. And any pages you add to a PL document must also be PL. You can't mix the two modes. One way around it is to start with a blank page, insert a text box, then stretch the box so that it covers the entire page. You can the type in it as if it were a text layer in a WP file. You can even capture that page so that you can add it automatically when you need it, or save it as a template.
    As for building a Table of Contents, it appears that Pages only sees text styles that are on the text layer, which means it won't see styles that are in objects -- which means it won't work with a PL document. From being a long-time reader of this discussion group, I've noticed it's rare that someone wants to add a ToC to a PL document.
    If you find that you're going to be mixing text and graphics, start with a word processing template. If you really like the Catalog Brochure, you could always copy some or all of its elements over to a blank WP template.
    Hope this helps.
    -Dennis

  • HT1414 C apple i need to know few things,first of all i shall tell my scenario. I got an iphone 3gs from my uncle in US. I m at india k. well , in that iphone it showing activation screen and trying to activate. not more than that..plz help!

    C Apple, i need to know few things,first of all i shall tell my scenario. I got an iphone 3gs from my uncle in US..after long waiting. I m from south india, living at God's country called Kerala k. well , in that iphone it showing activation screen and trying to activate. not more than that..plz help!
    means.. in simple words, it is trying to activate and all( searching wifi,, taking few minutes..again searching...if it couldnt find any wifi - telling .. try connect using itunes an all)...well any way. finally I try connect to a wifi network, with full speed...3mbps..from Ravi's internet cafe in downtown.
    All after Im getting the below message from that white candy box!( thats all I can use now, because, in my dreams iPhone is something great,  that mankind ever seen....but this really disappointed me......im simpling blinking!!(same with itunes too)
    ""Your iphone could not be activated because the activation server is temporarily unavailable. try connecting your iphone to itunes to activate it, or try again in a couple of minutes.
    If this problem persists, contact apple support at apple.com/support""
    EVERYDAY .EVERTIME.. I C this message and sleep....no use.....and i use to charge that 'white candy box' to c this message!
    I try searching internet and all for solutn...but no one knw about it..but there are...some one me abt method called jailbreaking ..rednw..white snw ..ultrasnw and all...I dnt knw why it is so complicated to troublesht...apple is suppose to be simple and friendly.
    C why u manufacturing these stuffz like this, if does'nt serve the any of its purpose ....or useable to any of its features atleast....C i wont be that disapppointed, if u put an option to playbck music or video during activation and all...
    If you are responsible for manfacturing such unuseable thing, then its ur responsible to destroy it too.....
    anyway now everyone knws that ..I have an apple iphone with me, but that doest make me proud at all...
    Finally I have only few questions to ask...
    1 will it work with my vodafone sim in kerala?
    2 is any way , i can hear any music out frm it?
    3 will i become a proud iPhone user?
    I am already fedup with asking questions..begging for an solution.....
    I hope so you can help to figure it out, without any complications....thank u!

    It was not legitimately unlocked by the carrier it was originally locked to. ONLY the carrier it is locked to can authorize unlocking it.
    In order to allow it to be used on a different carrier, the phone was hacked or jailbroken. An unauthorized modification was made to the phone. That modification has damaged the phone. You can not get support for it here or from Apple.

  • Error when Activating the data store object

    Hi All,
    I have to get the following below errors when i was activating the ods.
    Transfer structure prefix for source systemt T90CLNT is not defined
    Error when creating the export datasource and dependent objects
    could anyone help me on this issue.
    Regards,
    Naveen.
    Edited by: naveen naveen on Feb 2, 2009 6:35 AM

    Hi Naveen,
    Check the Source System connection and Run program RS_TRANSTRU_ACTIAVATE_ALL in SE38 and give your Source system ID and Infosource. If you have infosource. or replicate your datasource.
    and also Check the BW self System whether it is active or not. then try activating DSO
    hope this helps
    Regards,
    Daya Sagar
    Edited by: Daya Sagar on Feb 2, 2009 11:13 AM

  • SQL error while activating DSO and loading Mater Data

    Hello Experts,
    we are having process chains which include process activating DSO and loading to Master data,
    while executing achai, we are getting error:
    An error occurred during confirmation of process 000008. See long text
    Message no. RSODSO_PROCESSING024
    Diagnosis
    Note the detailed system message:
    An SQL error occurred when executing Native SQL.
    when i go to T-Code: ST22
    the diagnosis is below:
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    Exception              CX_SY_OPEN_SQL_DB
    Date and Time          20.05.2010 22:18:02
    What happened?
         The database system detected a deadlock and avoided it by rolling back
         your transaction.
    What can you do?
         If possible (and necessary), repeat the last database transaction in the
          hope that locking the object will not result in another deadlock.
         Note which actions and input led to the error.
         For further help in handling the problem, contact your SAP administrator
         You can use the ABAP dump analysis transaction ST22 to view and manage
         termination messages, in particular for long term reference.
         Note which actions and input led to the error.
         For further help in handling the problem, contact your SAP administrator
         You can use the ABAP dump analysis transaction ST22 to view and manage
         termination messages, in particular for long term reference.
    Could you please help me out how can i deal with this issue, .
    Regards
    Sinu Reddy

    it seems that the target you're loading to is already locked by another load...if it concerns a master data is also possible that the master data is locked by a change run. check your scheduling and make sure you don't load the same target at the same moment...
    M.

  • How to find out the PATTERN, GRADIENT and BRUSHED objects?

    How to find out the PATTERN, GRADIENT and BRUSHED objects information in illustrator active document file. And also how to find the CMYK and RGB color information in illustrator file through javascript. Could you please provide any examples.

    I tried using the below code. But for both "cmyk" and "grayscale" pattern it gives only CMYK. Kindly check and advise.
    Code:
    var docRef = activeDocument;
    for(var i=docRef.inkList.length-1;i>=0;i--){
      var inkRef=docRef.inkList[i];
      var inkRefName=inkRef.name;
      alert(inkRefName);
      alert(inkRef.inkInfo.kind);
    Thanks for looking into this.

  • Portal Activity Reporting and SAP Business Warehouse

    Hi,
    Does anyone out there know if SAP has or plans in the near future to deliver Portal Activity Reporting content via SAP Business Warehouse?
    I would have thought BW would have been the ideal solution to enable some "out of the box" Portal Content in terms of extracting the data from the tables used for the Portal Activity reports, and then extracting them to BW for slicing/dicing & Presentation.
    The current standard Portal Activity reporting does not supply what we need. We don't want to spend time and money developing this ourselves if SAP has plans to deliver it in the near future.
    Any news please?
    Cheers, Phil G.

    Hi,
    Check this blog which tells about the future of Activity Reporting..
    The Final Word (Hopefully) on the Portal Activity Report
    John

  • Issues Acrobat Pro 9 and Word XP(2002)

    We installed Acrobat Pro version 9 a couple of weeks ago, and began experiencing problems with a couple of our VB.NET apps that invoke Word 2002. Basically, it appears that the presence of Acrobat Pro 9 causes Word 2002 to stop interacting with some VB commands. These same VB.NET apps function without incident under Acrobat Pro version 8.
    We are running Acrobat Pro version 9.1.3 and Word XP(2002).  The VB.NET apps were developed using Visual Studio 2005 version 8 and .NET Framework version 2.  We are using Windows XP Professional SP3.
    The specific error message being generated by the .NET apps is:
    Unable to cast COM object of type 'Word.ApplicationClass' to interface type 'Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).
    The error is thrown when the app attempts to open a Word document.
    Has anyone encountered this problem?  Do you know of any web sites I could check that could possibly help out?
    Thanks!

    Please post in the SDK forum.

  • InDesign stops working correctly on some files. Flashing UI and deselecting objects.

    I am using the latest version of InDesign (10.0.0.70) on the latest version of Mac OSX (10.9.4).
    Recently I have been having an issue with InDesign which only affects some documents. The interface sort of flashes every few seconds sort of like the application frame is being deselected and then selected again. Whenever this happens (roughly every 4 seconds) anything I was doing is deselected, so if I'm dragging an object it snaps back to where it was and is deselected or if I'm entering a value into an input box the input box is deselected and reset. I think you can imagine how this can make InDesign fairly unusable.
    The problem doesn't occur on all documents, but I've been unable to find any link between the files it does do it on. Sometimes it will occur on a completely blank document that has just been created and other times it will be fine. On files that it does occur on it sticks and consistently happens to those files, if I copy the contents of the file onto a new document that was unaffected the problem does go away temporarily, but will occur again after a little while or the next time I open the file. Saving the file as an IDML does not make the problem go away it carries over to it. Deleting every element and all pages on an affected file doesn't fix the problem either.
    The problem does only seem to occur on one file at a time, if I have multiple files open only one of them will be affected, if I open two affected files at the same time one of them will be fixed and the problem will go away while the file is active and then return when I switch back to the other one. If I then close one of the files the problem will re affect the file.
    Copying an affected file off of the server I work off and opening it from my desktop does not change anything.
    I work in a studio with five other Macs all running the same version of OSX and InDesign none of the others are affected by this at all. My Mac is only a few months old and the newest of the lot, I don't have anything different installed on it from the others.
    I have tried completely removing InDesign and Creative Cloud and doing a fresh install which did not solve the problem.

    Sounds like you have an Extensis font manager. Turn off the auto-activation plugin and complain to Extensis.

  • How to delete CS and ID objects

    Hi
    How to delete configuration scenario including all objects in ID so that it should not come back if I do reject changes in ID change List
    Thanks,
    srini

    Srinivas,
    You can delete the individual objects under the configuration scenario and then delete the configuration scenario. If you think that you may use some of the objects in future then you can just remove it from the scenario. after deletion , go to activation tab and activate it , this would complete the deletion procedure. Reject chnages would bring back the deleted stuff back to scenario so don't use that.
    Hope this helps
    Thanks and Regards
    Arvind

  • Word objects will not convert to pdf

    Hi. I have had this issue for some time. So, I went with the Acrobat 9 Pro edition and the same issues are occurring. Ok, here is the problem:
    When I convert a Word document with text and an object, image or graphic to a pdf document, only the text converts. In other words, I get a pdf document with the object, image or graphic missing. This also applies to text boxes. These also do not show up in the converted pdf.
    I have tried to find a setting in preferences to address this but continually have had no luck.
    Please help with this issue.
    Much thanks in advance,
    Jamie

    How are you converting? What version of WORD? The key issues you have left out.

  • Reg Differrences between SynBo and Data Object

    Hi,
            I want to know the architectural diffrences between a SyncBo of MI 2.5 and Data Object of NWM 7.1.  As it is given in help.sap.com documentation I think A data object support multiple levels of parent- child hirearchy where as a SyncBo is limited to one level of Header and Items.Similarly do any other differences exist?
    2) In what way A data Object concept is better than that of a Synco.?
    3) For manipulating the data of a data Object on Front end, Can we Use the existing SmartSync API of MI 2.5, or a seperate API for client side is going to be released?
    Thanks in Advance,
    Rajesh

    Hello Rajesh,
    1. The differences are small. You pretty much highlighted the biggest one (multi child node). Other differences exist in the fact that a SyncBO is linked to a backend BAPI as the DO is not (you would usually create the DO with the fields you need and then have backend adapters to fill it). Lifecycle of the DO is also different. Even release, non destructive change can happen and old application as well as new application will work at the same time. I can list a couple more, but I think you get that a SyncBO is different than a DO (even if in our development we still get mix both wording:))
    2. Yes DO is a better concept than SyncBO.
    3. There are 3 ways of accessing API on the client side. The first is the old SmartSync API which is only used in backward compatibility application (MAM for example). It should not be used for new development, but only to leverage existing one. After that you have two new frameworks for laptop and for PDA that you can find in NWDS 7.1. They reviewed the naming so I am not sure of the current ones, but I think it is something like Mobile Application for Handheld and Mobile Application for Laptop. Those two new framework uses WebDynPro flavored UI and provide access to the sync/data layer.
    Thank you,
    Julien.

Maybe you are looking for

  • Is there a way to create a Word Frequency list in 8.2.5?

    I would like to be able to create a Word Frequency list for each PDF in a batch of PDFs. I have used Batch Processing to make sure each one is OCR/searchable. Is there a way to do this in Acrobat Pro 8.2.5 / Windows XP? Thanks!

  • ITunes wont connect to the itunes store.

    Every time I try to connect to the itunes store it says the network connection is timed out and to make sure my network settings are correct then try again. Anyone know how to change your network settings or resolve this problem? thanks

  • Cost center determination in tax account

    Dear Experts, I am facing an issue when posting taxes. I have the following need: when a sale is posted we have to calculate 1% tax. This tax is company's responsibility; therefore I want to post a credit amount to a balance sheet account (with the v

  • Date difference in APEX 4

    Dear APEX Expers, I am working on a small scale application, I have two date fields for employees leave form one is start_date, and other is end_date, first i want to make a check that is user enters end_date less then that of start_date then system

  • One more hearing question

    i JUST plugged in my guitar and recorded my first track. then i pressed 'play'. why don't i hear anything? i can see that the sound was recorded.