[Solved] VB6-Writer - Column Width TextTable
Posted: Thu Nov 22, 2012 1:26 pm
Hi, I hope someone could help me.
Ive done an application in VB6 to create 00Writer documents
I've got only one problem.
Change columns width.
I have been searching a lot and the only 'code' i get is this one. Everybody say that it works, but not for me.
When I run it, i get an error that says 'Object is recuired'.
I have no acccess to 'otabseps(0).Position ' value
Could anybody heplp me?
Thanks!!
Ive done an application in VB6 to create 00Writer documents
I've got only one problem.
Change columns width.
I have been searching a lot and the only 'code' i get is this one. Everybody say that it works, but not for me.
When I run it, i get an error that says 'Object is recuired'.
I have no acccess to 'otabseps(0).Position ' value
Could anybody heplp me?
Thanks!!
Code: Select all
Dim otabseps() as variant
otabseps = oTable.TableColumnSeparators 'oTable is the table i've created
otabseps(0).Position = oTable.TableColumnRelativeSum * 0.05 'Error Object required
otabseps(1).Position = oTable.TableColumnRelativeSum * 0.15
otabseps(2).Position = oTable.TableColumnRelativeSum * 0.85
otabseps(3).Position = oTable.TableColumnRelativeSum * 0.95
oTable.TableColumnSeparators = otabseps