![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Ole Automation :- Table Autoformat Method Topic Summary: Auto format existing tables using OLE Automation Created On: 27-Jul-2005 16:53 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am trrying to format an existing Word Table using OLE Automation from DXL, I have translated the above into a function (see below):- OleAutoObj objSelection = null if(!noerror(oleGet(objWord,"Documents", objDocs))) return falseOnError("") clear(args) //Table collection //Table Object clear(args) return true |
|
![]() |
|
![]() |
|
quote: My first guess is that str_Table should be an integer value. Try to hardcode the table selection as put(args, 1) and see if that works. I looked around in the Word VBA documentation and didn't immediately see a list of values for the Format Variant. I've been succesful turning on autofit for a table using the following snippet of code: const int wdAutoFitFixed = 0 const int wdAutoFitContent = 1 const int wdAutoFitWindow = 2 clear args put(args, wdAutoFitContent) oleMethod(objTable, "AutoFitBehavior", args) Good luck, Dennis |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Ole Automation :- Table Autoformat Method
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.