谁有 "利用XML实现通用WEB报表打印 "的源代码。
最好是调试好的。70060987@QQ.COM
--------------------编程问答-------------------- --------------------编程问答-------------------- 这是我Print.Dll中的一部分。
private void PrintControl_Load(object sender, System.EventArgs e)
{
try
{ //装载报表XML数据
this.label1.Text = "正在加载报表数据,请稍侯... ";
doc.Load( "http://ansam/WebPrint/report.xml ");//其中ansam是我的计算机名字,WebPrint是我要用的虚拟目录,report.xml是一个xml文件。
this.label1.Text = "报表数据加载完毕! ";
SettingPrinter(doc[ "root "][ "pagesetting "]);
this.button1.Enabled = this.button2.Enabled = this.button3.Enabled = true;
}
catch(Exception ex)
{
this.label1.Text = "出现错误: " + ex.Message;
}
}
我再Htm页中调用的代码如下:
<HTML>
<BODY>
<object id= "print " classid= "http:RemotePrint.dll#RemotePrint.PrintControl " Width= "0 " Height= "0 " VIEWASTEXT>
</object>
</BODY>
</HTML>
再运行期间,他也不报错,就是显示不出来。(我的xml文件是没有问题的。)
htm的文件的虚拟目录是WebPrint,而且.Dll文件和htm文件,和xml文件都在同一个目录下面。 --------------------编程问答-------------------- http://www.google.com.hk/search?hl=zh-CN&source=hp&biw=1436&bih=742&q=RemotePrint.PrintControl+&btnG=Google+%E6%90%9C%E7%B4%A2&aq=f&aqi=&aql=&oq= --------------------编程问答-------------------- 卢彦的《利用XML实现通用WEB报表打印》,谁把代码调通了????????
补充:.NET技术 , C#