Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formating two columns of output to MS Word
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Formating two columns of output to MS Word
Divers
Thread ID:
00270766
Message ID:
00270766
Vues:
52
Could anyone tell me how to format two columns of output to MS Word? I have tried using tab, but if the first column contains no data or a short character string, the 2nd "column" of data is misaligned.
oWord = createobject("Word.application")
oWord.documents.add
oWord.visible = .T.

select cReport
nRow = 1

DO while NOT eof()
	oword.Selection.insertafter(cReport.stocknumber+chr(9)+alltrim(cReport.title)+chr(13))
	SELECT cReport
	skip 1
ENDDO
oword.Selection.MoveUp
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform