suresh babu

suresh babu

  • NA
  • 4
  • 0

convertion(very urgent)

Sep 15 2005 4:31 AM


hai

i have some problem 



dim
rng As Word.Range = aDoc.Range(Start:=0, End:=0)

 Dim sourceFile As FileStream = New FileStream(FILENAME, FileMode.Open, FileAccess.Read)

Dim FileSize As Long

FileSize = sourceFile.Length

Dim getContent As Byte()

getContent = New BinaryReader(sourceFile).ReadBytes(FileSize)

sourceFile.Close()

rng = getContent----> my problem here

EntireFile = rng.Text

how to copy binary  data   to word file 

plz help