WORD生成完全通用组件新鲜上市 呵,我的e-mail是[email protected]是不是免费的?:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 send me to [email protected]. 3x send to me [email protected] [email protected]thank you 交个朋友吧 [email protected] 能否让俺也学学:[email protected] 谢谢我的电邮:[email protected] 学习,谢谢,[email protected] Public Function word_exe(ByVal filename, ByVal find_str, ByVal change_str) As StringDim wdapp As New Word.ApplicationOn Error GoTo e1Dim f_str() As String, c_str() As String, i As Integerwdapp.Visible = Falsewdapp.Documents.Open filenamef_str = Split(find_str, "|")c_str = Split(change_str, "|")For i = 0 To UBound(f_str) wdapp.ActiveDocument.Content.Find.Execute f_str(i), , True, , , , , , , c_str(i), 2Next iwdapp.ActiveDocument.Savewdapp.ActiveDocument.Closewdapp.QuitSet wdapp = Nothingword_exe = "OK"Exit Functione1: wdapp.Quit Set wdapp = Nothing Dim ErrMsg As String ErrMsg = "Error Number:" & Err.Number & "<br><br>" ErrMsg = ErrMsg & "Error Source:" & Err.Source & "<br><br>" ErrMsg = ErrMsg & "Error Description:" & Err.Description & "<br><br>" word_exe = ErrMsg Exit FunctionEnd Function我写的这个有什么错,为什么vb调用正常,用asp调用就报错呢,是不是服务有什么要求啊? 这段代码你放在VB端还是ASP端,HTML报错显示为何?如果放在VB端,把函数返回类型改成Variant试试. 很感兴趣,可以发给我一份吗?[email protected]谢谢先!!! 有趣,有用,我想要。[email protected] 谢谢,我也想要一份[email protected] 我正需要它,谢谢。[email protected] 谢谢,我也想要一份[email protected] 不错,我也想要,谢谢了,这是很好的东西,你的dll是什么语言写的[email protected] vb转义符解释 问一个基础问题! 用VB怎么画光滑曲线?有没有控件? 谁能写出完整的拨号和挂断函数,要求自动检测操作系统版本(98/nt/2000),谢谢。 散分,7000多人不知道怎么用 500相送,谁可以给一个VB数据库的例子,仓库管理的 关于SQL “无效使用NULL”的正确解决方法。 谁有xp风格的报表控件?只有61分了,立刻相送 除了csdn还有那里可以发布软件? 请问鼠标事件中MouseDown与Click事件有什么区别? 怎样从数据库中读出图片100分急 vb下有没有指针之类的东西?
thank you
[email protected]
我的电邮:[email protected]
Dim f_str() As String, c_str() As String, i As Integer
wdapp.Visible = False
wdapp.Documents.Open filename
f_str = Split(find_str, "|")
c_str = Split(change_str, "|")
For i = 0 To UBound(f_str)
wdapp.ActiveDocument.Content.Find.Execute f_str(i), , True, , , , , , , c_str(i), 2
Next i
wdapp.ActiveDocument.Save
wdapp.ActiveDocument.Close
wdapp.QuitSet wdapp = Nothing
word_exe = "OK"
Exit Function
e1:
wdapp.Quit
Set wdapp = Nothing
Dim ErrMsg As String
ErrMsg = "Error Number:" & Err.Number & "<br><br>"
ErrMsg = ErrMsg & "Error Source:" & Err.Source & "<br><br>"
ErrMsg = ErrMsg & "Error Description:" & Err.Description & "<br><br>"
word_exe = ErrMsg
Exit FunctionEnd Function
我写的这个有什么错,为什么vb调用正常,用asp调用就报错呢,是不是服务有什么要求啊?
如果放在VB端,把函数返回类型改成Variant试试.
[email protected]
谢谢先!!!
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]