📄 13677.html
字号:
<html>
<head>
<title>Re: 请问VB6 DataReport 有否 Refresh 内容的功能</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: 请问VB6 DataReport 有否 Refresh 内容的功能</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:zhanghz@tpts4.seed.net.tw">Zhang</a> on June 01, 1999 at 18:44:19:<p>
In Reply to: <a href="13649.html">Re: 请问VB6 DataReport 有否 Refresh 内容的功能</a> posted by job on June 01, 1999 at 08:40:52:<p>
: : : : 例如: 报表输出栏位相同, 但因为条件子句(Where...)不同使输出报表内容不同<br>: : : : , 如何Refresh 报表内容, 因为DataReport好像会Keep首次输出报表的<br>: : : : 内容耶, 感谢 高手解惑.~~~~~~~~<3~~~~~~<p>: : : 当然,因为,command你没有更新<br>: : : 之前我有帮人解决过,去找前面的<br>: : : 找不到再找我<p>: : 感谢阁下赐教, 已查阅已之前的Q&A: DataEnvironment1.Commands(1).CommandType = adCmdText <br>: : DataEnvironment1.Commands(1).CommandText = strSql & My_Where_statement<br>: : DataEnvironment1.Recordsets(1).Close .....(Q)<br>: : dataEnvironment1.Commands(1).Execute<p>: : DataReport.Show<p>: : 如果有(Q)该叙述, 则出现Error Message " the operation requested by the application is not allowed if the object is close"<br>: : 如果无(Q)该叙述, 则始终Keep首次报表输出的内容,<br>: : 之后执行并未Refresh 报表内容, 除非退出AP, 重新执行. Why.....?<br>: : Thanks a lot to JOB<br>: 第一,你先在程式判断Commands(1)是否曾经执行过,有就做<br>: : DataEnvironment1.Recordsets(1).Close <br>: 然后,<br>: DataEnvironment1.Commands(1).CommandType = adCmdText <br>: DataEnvironment1.Commands(1).CommandText = strSql & My_Where_statement<br>: dataEnvironment1.Commands(1).Execute<br>: DataReport.Show<p>再一次感谢Job兄赐教, 问题已经解决.谢谢~~~~~~~~<3~~~~~~
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 13677-->
</ul><!--end: 13677-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -