Problem with automation in Style Sheets

gonzy1981gonzy1981 Member Posts: 156
Hi:

Maybe someone can help me:

In the codeunit 680, when i compile there is a problem the variable wrdApp is an Automation and the subtype is: Unknown Automation Server.Application. It's wrong!!!!

Do you know what it's happenning??
Do you know how i can repair it???

Thanks.

It's happening the same in the codeunit 5054.

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    The wrdApp variable points to 'Microsoft Word 12.0 Object Library'.Application . The '12' varies according to the version of Office you have installed.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • jannestigjannestig Member Posts: 1,000
    There is a new version of the Style sheet kit.
    http://blogs.msdn.com/nav/archive/2009/ ... lable.aspx
    Which version do you have installed or is this your own mod?
  • danlindstromdanlindstrom Member Posts: 130
    you must install Microsoft Word 2003 or newer
    Regards
    Dan Lindström
    NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
    MBSP Developer for Microsoft Dynamics NAV 2009
  • gonzy1981gonzy1981 Member Posts: 156
    I've word 2007 installed.
    I've this Librery in my computer: 'Microsoft Word 12.0 Object Library'
    And i've this Style Sheet: Style Sheet ToolW12.0


    It's very strange!!!!
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    If you change the subtype of the variable to 'Microsoft Word 12.0 Object Library', can't you compile the codeunit afterwards?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • mdPartnerNLmdPartnerNL Member Posts: 802
    Well it's an old topic but have the same problem.
    The solution was as suggested to re-select the "Microsoft Word ? Library". I currently have the 12.0 library on a Windows 8 pc.

    But at the customer pc this will not work if they have the 8.0, 9.0, etc library. Then we need to re-select and re-compile this on the customers pc.

    How do you solve this? any suggestions?
  • mdPartnerNLmdPartnerNL Member Posts: 802
    The only way I could solve this was installing a VM with XP + Office XP + NAV 6.02 Classic
    then login into the database, select "Microsoft Word 10.0 Library".Application and recompile.
Sign In or Register to comment.