Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
how to find/replace text in binary files using oscript
Tom_Baghdassarian_(HPcaUser1_(Delete)_2164649)
has anyone tried using find and replace using oscript to replace occurrences of text from binary (e.g. word, excel) documents using oscript?this would need to work under UNIX however I'm desperate enough to run it under windows also - as long as it's scalable (i.e. don't need to install office on my backend server to open, run macro, and save documents)thanks a bunchthomas
Find more posts tagged with
Comments
Magnus_Salgo_(IDNordicAdmin_(Delete)_2300172)
Are you doing trying to fill in Word documents from Meta data in Livelink ?!?!?Try use RTF ..... and change replace I think to get a good answer you have to make a more precise question telling what operators you would like to do on what formats and how the format looks like ?!?!?QUestion nr 1 can you replace the text you want using a normal text editor opening the binaries ?!?!?Regards from a humble mind
Tom_Baghdassarian_(HPcaUser1_(Delete)_2164649)
the PURPOSE is to replace given text (lets say country) in a word or excel document (NOT RTF but rather documents saved as native word or excel by users) with dynamic values retrieved from web forms.e.g.: user selects Germany as the country, I need to open a given word/excel/any_office_document replace the word [country] in that document with the user's selection, and then save it in a given folder in livelink.since this is a backend process on HPUX, anything working with native microsoft APIs (e.g. macros/whatever) wouldn't help. I figured, the easiest would be to do a find and replace using oscript calls/3rd party modules.hope this clears it up a bit - thanks