Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Visual Basic Application to Generate Word Documents (Stopped Working?)

$
0
0

Hi we have a VB2010 application that we use to generate a selection of Word 2010 documents, which worked fine until we upgraded to Word 2013.

It appears that the application crashes while trying to set some of the oDoc.PageSetup border functions, and the oDoc.BuiltInDocumentProperties seem to have issues too, not populating the correct sections etc. however the most annoying is theoPara.Range.InsertBreak function causes an error also?

We use this application to automate generation of our test documents based on information entered by the user, project, number & type of devices etc. It generates a selection of Word and Excel documents containing a variety of pre-set test procedures, tables and spread sheets.

I've tried changing the versions of the office object libraries referenced 10.0, 14.0 & 15.0 still doesn't work?

1st question: Is there any way to fix these problems, It took us a while to get the original application working as the online samples at the time weren't that helpful?

2nd. As this application will possibly be running on a variety of differently configured systems with regards to OS XP, 7, 8 & 10  (x32-bit)(x64-bit) and the version MS Office, is there a way of detecting these and redirecting to the appropriate code if needed?

Thanks in advance


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>