943,879 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 995
  • C# RSS
Jul 13th, 2009
0

Change code in vbaProject.bin programmatically with C#

Expand Post »
Hi,
I'm trying to insert vba code in a word .docm file through vbaProject.bin. I'm planning to use C# for this task. The part to change it to zip or use the System.IO.Packaging to open up the file doesn't seam to be a problem.
Through this tutorial:
http://www.codeproject.com/KB/cs/off...select=2005497
I understand that the vbaProject.bin is a OLE document container tree and that the vba code is inside a stream.
If I convert the byte array stream to a string I get a lot of junk and not a clear vba code string.
I hope this can be solved without installing any office product because I'm forced to run solution as lightweight as possible.

I would appreciate your advice on this.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nattsurf123 is offline Offline
7 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Compare the context from two table of Database
Next Thread in C# Forum Timeline: Retaining the changes made to the backcolor property





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC