Getting "warning" -- "Late bound resolution, runtime errors could occur" with a line referencing a Word document

The problem line is:
            Dim Author$ = wd.ActiveDocument.BuiltInDocumentProperties(WdBuiltInProperty.wdPropertyAuthor).value.ToString
"wd" is my program's instance of Microsoft Word.
I've encountered this error before and could always fix the program and get rid of the warning without having to enclose the line in a "Try..Catch" structure. I enclosed this line in a Try..Catch, but the warning still appears, and for some reason,
I have dedicated my few remaining years to getting rid of it.
Robert Homes

Armin:
That didn't work for me. I couldn't even compile it like that, and I changed it to:
=============================================
        Dim props As Microsoft.Office.Core.DocumentProperties = _
                DirectCast(wd.ActiveDocument.BuiltInDocumentProperties, _
Microsoft.Office.Core.DocumentProperties)
        Dim Author$ = props(WdBuiltInProperty.wdPropertyAuthor).Value.ToString
=============================================
That at least allowed me to compile (and DID get rid of the warning), but then I got a runtime error:
========================================================
An unhandled exception of type 'System.InvalidCastException' occurred in Share.exe
Additional information: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Core.DocumentProperties'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2DF8D04D-5BFA-101B-BDE5-00AA0044DE52}'
failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
================================================================================
Robert Homes

Similar Messages

  • Get a popup an exception runtime error has occurred in script unable to jit debug

    i get a pop up window, just-in-time debugging
    An exception 'runtime error' has occurred in script.
    However, no debuggers are registered that can debug this exception. Unable to JIT debug.

    '''I think I solved it myself yesterday, indirectly''' by deleting a Googleupdater.exe file dated 042511. It has been over 24 hours now and no sign of the 'Just-In-Time Debugger' pop-up. Whew...it was incessant.
    Not sure how I got the Googleupdater.exe file on my computer. I did download Microsoft Security Essentials to help find the JIT problem, but it failed to install properly and run. The next day I remembered it probably only runs on Internet Explorer (which we deleted in 2009) after testing out Firefox. I then also deleted Security Essentials.
    I also downloaded on April 25th the free version of MS Visual Basics because I read on eHow that you can adjust settings in the 'TOOL' menu to stop JIT Debugging pop-ups. However, the free version was 'MS Visual Studio Basic 2008 Express Edition - SP1' which did NOT provide access to JIT Debugging settings (so it was not a solution).
    I must say I switched Internet Security programs to AVAST! on TU | Apr26th and love it so far. Highly recommend looking into AVAST! ver 6.0 at CNET downloads - free. The anti-virus program is free, but everything else costs about $30US for a year. WORTH IT Love the options | settings | flexibility|user friendly windows.
    Trend Micro was then deleted. It had always blocked usage of our internal CD|DVD drive. To use the CD|DVD drive we had to shut off Trend Micro and then turn it back on again after we finished using the CD|DVD drive. NOT a preference - for sure. Jaykay

  • HT1923 when I try to install ITunes, I get the message that says "runtime Error".  I've tried to uninstall old Itunes but can't complete it.

    When I try to reinstall Itunes, I get the message that says "runtime error".  What to do?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Runtime error in kob5, kob1 and line items display in Cost Analysis in ko03

    Hello everyone,
    I would like to ask for your expert advice on a situation we need to have a solution. Let me tell you what happened.
    In ko88, we tried to settle an internal order to a final asset using 'partial capitalization'. We encountered an error 'Settlement amount is greated than available amount'. I checked in kob5 and we have two line items: 90,000 and 30,000. Both have to be settled to three different final assets namely asset 1, asset 2 and asset 3. The settlement rule was as follows at first:
    Line 1: 90,000 to be settled to asset 1, asset 2 and asset 3 at 65,000; 40,000 and 15,000, respectively.
    Line 2: 30,000 to be settled to asset 1, asset 2 and asset 3 at 65,000; 40,000 and 15,000, respectively.
    Due to the error, we changed the settlement rule following these directions:
    1. Remove the settlement rules that we had so we can start anew.
    2. Choose the first line item and click on "Final Settlement".
    3. Enter the necessary settlement details (total should equal to 90,000 only).
    4. Go back and save.
    5. Choose the second line item and click on "Final Settlement".
    6. Enter the necessary settlement details (total should equal to 30,000).
    7. Go back and save.
    8. Then, check again the distribution rules set.
    Everything was saved and done correctly. So, we tried to do ko88 this time. But, the previous error 'Settlement amount is greated than available amount' still occured.
    I went back to kob5 and when I ran it, a runtime error occured. I went to see the actual line items in kob1, and I encountered the same runtime error. I went to see in ko03>cost analysis>the actual debit line items, and I encountered the same runtime error. Were my actual line items lost? How do I retrieve them?
    Thanks in advance.
    Best regards,
    Peter

    hi,
    check in SAP OSS with the message number you get is there any SAP Notes tobe applied.

  • Abap runtime error UNICODE_TYPES_NOT_CONVERTIBLE occured

    Hi,ecpert:
    I have encountered one abap runtime error UNICODE_TYPES_NOT_CONVERTIBLE
    and the main logic list below:
    First, I define one parameter which user can input from selection screen.
    PARAMETERS:P_TABNAM LIKE DD03L-TABNAME .
    Then, I get the dynamic internal table based on P_TABNAM .
    CALL METHOD cl_alv_table_create=>create_dynamic_table
                   EXPORTING
                      it_fieldcatalog = ifc
                   IMPORTING
                      ep_table        = dy_table.
      ASSIGN dy_table->* TO <dyn_table> .
    Then, after filling data to <dyn_table>, I want to modify the (P_TABNAM).
    MODIFY (P_TABNAM) from TABLE <dyn_table>.
    And when I run this program , one runtime error UNICODE_TYPES_NOT_CONVERTIBLE occurred.
    Pls give suggestions, thanks.

    Quite appreciate your help, I tried this T-code
    however, I got no information after run it with my program name
    In addition, this program can be activated properly in ABAP editor,and error occured
    when execute the 'Modify' clause.

  • I am trying to upgrade my iPhone 4 to the latest iOS via iTunes, but I keep getting a message saying that an error [-5000] occurred and continuing will delete all content on my iPhone. What's the solution?

    I am trying to upgrade my iPhone 4 to the latest iOS via iTunes, but I keep getting a message saying that an error [-5000] occurred and continuing will delete all content on my iPhone. What's the solution?

    okay I've done everything regarding the transfer process (via file>transfer purchases) and syncing, so everything on my iPhone device seems to have been transferred to my iMac... however, I still get that message ("There are purchased items on the iPhone..."), trying to upgrade the iOS Have tried several times the same process of hitting transfer purchases via file, but nothing seems to make that message go away! Would have been nice to know which files I actually do need to transfer, which I don't get any info on of course...
    Starting to get really annoying this thing.. Any smart suggestions what's going on?

  • When I try to update I get a message that says "an error has occurred" and I cannot update like I have been doing for several years

    When I attempt to upgrade I am now getting a message that says "an error has occurred" and I cannot activate the upgrades----there are two pending

    Disable anti virus software if installed
    Make sure the firewall is turned off in System Preferences > Security & Privacy > Firewall
    Make sure Gatekeeper is enabled
    Open System Preferences > Security & Privacy then select the General tab.
    Make sure either Mac App Store or Mac App Store and identified developers is selected.
    If that area is grayed out, click the padlock icon to proceed.
    OS X: About Gatekeeper

  • Query 0: Runtime error There is already a line with the same key. with para

    Dear all,
    I have a query with several variables. One of the variables is Version. When I use certain values e.g. 1,2 or 3, I can generate the query without any problem. However, when I use the other values e,g, 4, 5, or 6, the query gives me with the following error messages :
    1. Query 0: Runtime error There is already a line with the same key. with parallel processing via RFC
    2. Error while reading data; navigation is possible
    3. >> Row: 174 Inc: LRSDRPU02 Prog: SAPLRSDRP
    Error 1
    Query 0: Runtime error There is already a line with the same key. with parallel processing via RFC
    Message no. DBMAN428
    Error 2
    Error while reading data; navigation is possible
    Message no. BRAIN289
    Diagnosis
    An error occurred while reading the data. The query result is therefore empty or inconsistent and is not buffered in the OLAP cache.
    Procedure
    You can continue to navigate or return to the last navigation step.
    Error 3
    >> Row: 174 Inc: LRSDRPU02 Prog: SAPLRSDRP
    Message no. RS_EXCEPTION301
    Diagnosis
    En error has been triggered. This message specifies where in the coding the error occurred. This helps you to localize the error quickly.
    May I know what causes this error and how to troubleshoot it?
    Thank you.

    Venkat,
    You are either a genius or working for SAP.
    In any case, your solution solved my problem.
    Thanks heaps!

  • TS3694 i have dropped my iphone4 . i cant get to the software update the error has occured  wt can i do

    i have dropped my iphone4 . i cant get to the software update the error has occured  wt can i do for software update

    What is the exact wording of the error message received?

  • A Runtime Error Has Occured Do you wish to Debug? Line 90 Error: Object Expected

    A Runtime Error Has Occured Do you wish to Debug? Line 90
    Error: Object Expected
    This error is recieved when trying to open "The Fan" video
    news Page from Comcast, This error appears and when you select yes
    or no, the page comes up to install Adobe Flash Player, however
    even after installing it, the error still appears when attempting
    again, even after restart, this does not occur on Firefox, only
    IE

    Also I am on Windows Vista

  • Error: "A runtime error has occurred."

    I am receiving the following error after installing SP3 on crystal XI release2
    A runtime error has occurred.
    Do you wish to Debug?
    Line: 515
    Error: Object Expected
    Any Ideas?

    The following SAP note would help you
    [https://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]
    Regards,
    Raghavendra

  • How to fix an error has occurred with your microphone/speaker.(104) when using line application

    Haloo,
    I am an iphone 5 user, while using the line application for calling with my girlfriend,
    suddenly this error happened
    an error has occurred with your microphone/speaker.(104)
    anyone can help me fix this problem?
    thank you..

    So I tried the trial version but my serial number didn't work I guess because it's for a CS5.5 Web Premium product. I also tried uninstalling my current version of FB4 Standard, uninstalling CS5.5 and starting from scratch without any copies of FlashBuilder in my Applications folder and that didn't work, same error log message. I ended up reinstalling my original copy of FB4 Standard so I could continue working.
    The odd thing is when I went to my MacBook Pro and uninstalled the copy of FB4 Standard I have on there and installed the CS5.5 FlashBuilder 4.5 Premium it works and started up fine. So I'm guessing there's something specific about my iMac setup that's preventing launch.
    I was looking at my FB installation details, don't know if this matters but I'm running the standalone version:
    Adobe Flash Builder Localized Standalone Feature 4.0.1.277662 com.adobe.flexbuilder.feature.standalone.nl1.feature.group
    eclipse.application=com.adobe.flexbuilder.standalone.FlexBuilderApplication
    Unfortunately it's the weekend (holiday in US too). I like the weekend for trying to get these things setup but I'm on my own and feel I'm out of luck until the work week starts.
    If anyone from Adobe is reading this with a beer in one hand and hotdog in the other (or burger or veggie burger or bbq chicken leg) on a hot memorial day and have an idea on how to fix this I'd really appreciate your advice. Thanks!

  • TS3694 My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many than

    My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many thanks.

    Hi
    I followed this guy's instructions and it worked:
    http://evsiphone.blogspot.com/2009/05/iphone-iphone-could-not-be-restored.html
    I did disable the security (AVG and Zone Alarm) when I tried on my own PC. My wife's laptop which eventually got it working also uses AVG and Zone Alarm but on an XP O/S whereas my PC is Vista - maybe this is why.
    Cheers for you help.
    Andy
    Message was edited by: bigbadandy

  • In App Purchase An unknown error has occurred with test user account

    I have created a test app that has in app purchasing. I am able to connect to the store and verify my product ID's. I then use my test user account to purchase a product. And guess what... it works... the first time. If I try to use the test user account to buy another product (the same product or a different one) then I get a pop up that says
    "An unknown error has occurred"
    with a "Cancel" and "Retry" option. If I retry then I get the same error. After hitting cancel I get the error:
    Error Domain=SKErrorDomain Code=0 UserInfo=0x161180 "Cannot connect to iTunes Store"
    Any ideas?

    I am having the same problem with my test account on multiple versions of iPhones. Any idea? Would this error affect real users?

  • IOS 8.1.3: an error has occurred with your microphone/speaker

    Hi,
    I have this problem with my girlfriend.
    Recently, we just upgraded from IOS7 to IOS8.1.3.
    We are frequent facetime users as we use it via Wifi and 3G connections.
    After the update, there are many annoying facetime issues occurred while we were trying to call each other.
    Below are the examples:
    1. An error has occurred with your microphone/speaker (T104):
    Explanation:
    After a few tries to call via facetime, we are always stucked at "Connecting...". So we gave up. We changed to use other apps, such as Line to call. However, I noticed that the speaker volume button will not work anymore. Volume up/down do not have any functions. Even calling with other apps, will have this error. So the only solution is to restart the phone. We need to restart almost everyday now.
    2. No Network Connection:
    Explanation: I am using the same Wifi connection everyday at home. Sometimes this error pops up. No other solution but must restart the phone to use facetime. No problem using the same Wifi in other apps.

    Greetings Eelnoow,
    If you are having an issue with getting FaceTime to function properly, I would suggest that you troubleshoot using the steps in this article - 
    FaceTime, Game Center, Messages: Troubleshooting sign in issues - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

Maybe you are looking for

  • Using a shared printer

    Hi, I just got a new Intel iMac and I have been having problems printing from it. I have an iMac G3 that I use to store music and do backups using retrospect. There is a HP Photosmart 8200 series printer that is attached to the G3. I have set the G3

  • Update EKKO Z field using Inbound Idoc

    I have an requirement where  I have to update Z field in EKKO while creating PO using inbound Idoc. Basic Idoc Type: PORDC103 Function module: BAPI_PO_CREATE1 Extended POHEADER and EKKO with z field. I am using exit EXIT_SAPL2012_001 to populate Z fi

  • Public Folders problem with CU3 / Windows XP

    Hi folks, will Microsoft in near future provide any solution for the broken Public Folders on Windows XP since CU3? http://community.spiceworks.com/topic/417494-installed-exchange-2013-cu3-now-outlook-2010-clients-on-xp-Troubles We're in trouble beca

  • Flash CS3 Professional and Remoting?

    I have some flash projects from 8 that use the remoting classes and amfphp on the server side. they don't work under CS3. I don't see any install for remoting under cs3, and just copying the classes over doesn't seem to do it. any ideas?

  • Comparing rows within cfgrid

    I have 2 queries that populate a third query using cfloop and querynew. The third query, "table1", works just fine. But I am using a java format cfgrid to output "table1". I want to highlight, change color, or something, when the value in one column'