Difference between manual and automatic creation (vba/com)

<!–[if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Normale Tabelle"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

<![endif]–>

Hello

I realized that a word doc is transferred into a pdf without any mistakes if I do it manually.

But, when I create it with vba/com, than I notice a lot of mistakes. For example in tables the distance of the rows are not the same anymore. They usually get larger and this is uncontrollable.

Does anybody can give me a tip on this?

Thanks a lot, Patrik.

Hi,

 

you probably need to define the page size in your vba script, that should help.

 

regards,

 

Robin