数据从使用Visual Studio中的Visual Basic创建的应用程序输出到Word Document 2010 [英] Data from an application created using Visual Basic in Visual studio out to Word Document 2010

查看:168
本文介绍了数据从使用Visual Studio中的Visual Basic创建的应用程序输出到Word Document 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,现在我可以从应用程序生成数据了.现在我在格式化时遇到麻烦,例如:
我想放置一个漂亮的图形作为标题
我也想从我的文本框中获取数据.现在我可以得到一个文本框条目.当我执行两次时,文本显示为无空格.这是我的代码

Ok Now I got the generate my data from my application Now I am having trouble formatting Example:
I want to put a nice graphic as the header
also I would like to get data from my text boxes. right now I can get one textbox entry. when I do two the text appears with no spaces. here is my code

'Insert a paragraph at beginning of the document
oPara1 = oDoc.Content.Paragraphs.Add
oPara1.Range.Text = Customer_Data.CustomerTextBox.Text & Customer_Data.CountyTextBox1.Text
oPara1.Range.Font.Bold = True
oPara1.Format.SpaceAfter = 24 '24 pt spacing after paragraph.
oPara1.Range.InsertParagraphAfter()

推荐答案

这与此处的示例相似:
http://support.microsoft.com/kb/316383 [
This is simular to the example here:
http://support.microsoft.com/kb/316383[^]

So are your textboxes empty?


这篇关于数据从使用Visual Studio中的Visual Basic创建的应用程序输出到Word Document 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆