且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将VB.Net EXE表单值导出到客户端PC上的word doc

更新时间:2022-10-24 22:44:05

您可以查看:

http://netoffice.codeplex.com/documentation


Morning guys and girls

I'm stuck between a rock and a hard place and I would appreciate any type of help.

I have created an .EXE to be emailed/written to cd and then given to a client off site.

The programme takes some values filled into textboxes by the client to perform a couple of calculations and then, in a couple of other textboxes give the client results.

I then export/generate a temporary office word document that contains all these textbox values, print the document and then deletes the word file. The reason is that we don't want digital copies of results available, since the client just might change the document.

Now this all work well on my pc as it should. I then tried it on other pcs in the office and found that some are not running the .Net 3.5 framework and has to be installed to run, this I sorted out by attaching the .Net 3.5 framework to the cd or email to the client.

Then I got another error... This makes reference to 'Microsoft.Office.Interop.Word' which I understand to be a serial number/version number problem blah blah blah. I have read that you can download the fix for this but the thing is I don't want the client to download "10" fixes before they can use the programme, it must be open, use, print, close, done.

What else can I do to export information to a document containing graphics like logos etc, print the document and then delete?

You can check this:
http://netoffice.codeplex.com/documentation