H
HoTriBao
Hi,
I have a problem when dealing with tables in Word, all of operations are
done by VBA:
Fisrtly, I create a table from data in a text file by importing it and
convert data into table. Then, I resize the table columns to expected sizes
by something like this:
With mainTableRange.Tables(1).Column(1)
.PreferredWidthType = wdPreferredWidthPercent
.PreferredWidth = 5
End With
....
The problem is (It occurs in Word XP or later, not in Word 2000!): After
constructing the table, I call a macro to print the document. In the paper,
the column size is not good. But instead of printing directly, I save the
document and then open it. The column sizes are same as printing at first but
after a moment, all columns will resize to the expected size. The problem
only occurs with a big data file (400 lines or biger).
Please help me.
Thanks a lot,
Bao
I have a problem when dealing with tables in Word, all of operations are
done by VBA:
Fisrtly, I create a table from data in a text file by importing it and
convert data into table. Then, I resize the table columns to expected sizes
by something like this:
With mainTableRange.Tables(1).Column(1)
.PreferredWidthType = wdPreferredWidthPercent
.PreferredWidth = 5
End With
....
The problem is (It occurs in Word XP or later, not in Word 2000!): After
constructing the table, I call a macro to print the document. In the paper,
the column size is not good. But instead of printing directly, I save the
document and then open it. The column sizes are same as printing at first but
after a moment, all columns will resize to the expected size. The problem
only occurs with a big data file (400 lines or biger).
Please help me.
Thanks a lot,
Bao