Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Help with OleBoundControl.width and Word7 format.
OleBoundControl is bound to General field with Word document. Width of this control affect Words format, for example:
If I set OleBoundControl.width=612 and in Word left(right) margin=2,5 cm, paper size=A4, then after saving and reopening is paper size A4.
But, if I change margin to 3 cm, then after ... is paper size set to 'custom' and print or preview is wrong. If I (in this case) change OleBoundControl.width to 580, it's OK again.
So, I must use only width=612, document A4, 2,5 cm margins (ugly) or
set width of this control before calling DoVerb(-2). But how or where can I found, how is Word document formatted ?
Pavel
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement