C
Christopher Beltran
I am currently trying to replace certain strings, not
single characters, with other strings inside a word
document which is then sent to a browser as a binary
file. Right now, I read in the word file, convert the
FileStream into a string using Unicode encoding, then do a
replace, then convert the string back to a byte[] using
Unicode encoding which i then Response.WriteBinary(bytes)
to the browser. This works fine although the actual
replace is not working correctly. When I use UTF8 or
ASCII encoding the word document does not open correctly
in Word unfortunately. Anyone ever done this before? I
do not want to use the word component if possible or save
the word document back to disk if possible as its being
used as a template. Thank you so much!
Sincerely,
Christopher Beltran
VP Product Development, Passageways
P.O. Box 1950
West Lafayette, IN 47906
Telephone: (765) 497-8829
Direct Line: (765) 497-8831
Fax: (765) 497-8804
Email: (e-mail address removed)
single characters, with other strings inside a word
document which is then sent to a browser as a binary
file. Right now, I read in the word file, convert the
FileStream into a string using Unicode encoding, then do a
replace, then convert the string back to a byte[] using
Unicode encoding which i then Response.WriteBinary(bytes)
to the browser. This works fine although the actual
replace is not working correctly. When I use UTF8 or
ASCII encoding the word document does not open correctly
in Word unfortunately. Anyone ever done this before? I
do not want to use the word component if possible or save
the word document back to disk if possible as its being
used as a template. Thank you so much!
Sincerely,
Christopher Beltran
VP Product Development, Passageways
P.O. Box 1950
West Lafayette, IN 47906
Telephone: (765) 497-8829
Direct Line: (765) 497-8831
Fax: (765) 497-8804
Email: (e-mail address removed)