Creating a Word document
Author: traderray
Creation Date: 4/4/2015 4:15 AM
profile picture

traderray

#1
I want to create a word document with results from my script. Can anyone help me get setup to create a word document?
profile picture

Eugene

#2
You'll find plenty of guides describing how to create Word documents in C# if you just Google it:

C# create Word document

An existing example in WealthScript instructs how to copy formatted text and chart image to clipboard and create a new RTF document which can be opened in either Wordpad or Word (see Advanced example):

Wealth-Lab Wiki > Copy to Clipboard
profile picture

traderray

#3
Thanks Eugene. I have searched for examples and have found several. The problem is that I can not get any of the examples properly set up to compile. The using statements normally have an error. I don't know if my computer is not properly set up or if I am missing some downloads to implement the interface. If someone could simply show me how to get the interface with Word running in WLP I would be on my way.
profile picture

Eugene

#4
The Wiki example demonstrating to create an RTF document is fully functional and only requires Communuty Components installed.

Those external examples are typically focused around a Microsoft Office interoperability interface. Please look for assistance on such community sites as StackOverflow and CodeProject.
profile picture

traderray

#5
Thanks Eugene.

Have any other users been able to interface to Word from WealthLab?
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).