General discussion

Locked

While printing a VB-Word document......

By MuthuVenkatsubramanian ·
Hi!
Iam printing values taken from database through a vb program in to a ms-word document.While printing,i found the need for sensing the line number of word document for alignment.Is there any function available to do the same? Bye!

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

While printing a VB-Word document......

by DKlippert In reply to While printing a VB-Word ...

This may give you some direction.
Sub WhereAmI()
'
MsgBox "The selection is on Line " & _
Selection.Information(wdFirstCharacterLineNumber) & " of page " _
& Selection.Information(wdNumberOfPagesInDocument)
End Sub

Collapse -

While printing a VB-Word document......

It really helped me a lot.Thank you!

Collapse -

While printing a VB-Word document......

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums