Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Attachmate WRQ Reflection Programming


Attachmate WRQ Reflection Programming

Author
Message
DavidJ_John
DavidJ_John
Forum God
Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)

Group: Forum Members
Posts: 2, Visits: 13
Hi,

I am working on WRQ reflection (For Unix and OpenVMS).

I am trying to copy a particular text content from a screen and write it into a word document.

Following is the code which is able to copy the entire contents into a word document.

Sub SendDisplayInfoToWord()
Dim displayText As String
With Session
'Get text from the screen display
'For Reflection for HP, UNIX and OpenVMS, RegGis Graphics:
displayText = .GetText(.ScreenTopRow, 0, _
.ScreenTopRow + .DisplayColumns, .DisplayColumns)

'For Reflection for IBM:
'displayText = .GetDisplayText(1, 1, _
'.DisplayColumns * .DisplayRows)
End With
'Create a Word object
Dim Word as Word.Application
Set Word = CreateObject("Word.Application")
'Make Word visible and create a new document
Word.Visible = True
Word.Documents.Add
'Add the display text to the document
Word.Selection.TypeText Text:=displayText
'Save the document and quit Word
Word.ActiveDocument.SaveAs Filename:="C:\MySample.doc"
Word.Quit
End Sub

How do I use it to get a particular content say only from a row Eg. contents from the 3rd row (3,1) to (3,10)?

Please help.

Regards,

David

 



'God will give every bird its worm but he will never throw it in its nest!'

DavidJ_John
DavidJ_John
Forum God
Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)Forum God (740 reputation)

Group: Forum Members
Posts: 2, Visits: 13
Hi Brian / Peter,

Please can you help me with this?

Regards,

David



'God will give every bird its worm but he will never throw it in its nest!'

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search