tags:

views:

166

answers:

1

I’m writing a plugin for word and would like to get the docx files as a byte array and send it to a web service.

Can I do this?

A: 

You can use ReadAllBytes:

byte[] bytes = File.ReadAllBytes(filename);

Is that what you're looking for?

Ahmad Mageed
Not really, Can i use that from a word addin, using ActiveDocument?
Chris Jones