![VB.NET源码-156个实用实例哦……](http://www.zhzx123.com/VB.NET_03.gif)
水晶报表问题?、急~~~~~
在vs中调试时很正常能打印。
在IIS中打开没任何效果。?????????
代码如下::::::
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ds As DataSet = New DataSet
ds = hs.Dslong(ViewState( "s "))
Dim rptRetailOrder As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Try
rptRetailOrder.Load(Server.MapPath( "long.rpt "))
Dim s As String
s = Server.MapPath( "long.rpt ")
rptRetailOrder.SetDataSource(ds.Tables( "HouseAssetInfo "))
rptRetailOrder.ParameterFields( "a ").CurrentValues.AddValue( "ddd ")
rptRetailOrder.ParameterFields( "b ").CurrentValues.AddValue( "dfdd ")
Catch ex As Exception
End Try
Try
rptRetailOrder.PrintToPrinter(1, True, 1, 999)
Catch ex As Exception
Response.Write( " <script> alert( ''打印出错!!! '') </script> ")
End Try
End Sub
__________________________________________________________________________
是人品问题????
还是配置问题????
还是什么问题????
小弟在这等就命啊~~~~~
__________________________________________________________________________
是看不到報表還是點打印按鈕沒反應?如果是後者的話,把一個正常機器上C:/Inetpub/wwwroot/aspnet_client目錄原封不動復制過來即可。
__________________________________________________________________________
我是点打印没反应~~~~~
用也几个人的aspnet_client
拷到
C:/Inetpub/wwwroot/aspnet_client
还是没反应.
救命啊~~~~~~~~~~~~~~~~~~~~~~~~
__________________________________________________________________________
C:/Inetpub/wwwroot/aspnet_client
复制到那??
__________________________________________________________________________
顶
__________________________________________________________________________
那位,知道怎么搞的说下啊。我再不完成,人就完了
在XP里打印正常。2000sever里打印出错(捕捉到的错误是,打印机不存在。能打印别的东西)。在2003下什么反映也没有。
谁能告诉我为什么。我只要能在2000sever下打印就可以。我用的是vs2005自带的报表。
__________________________________________________________________________
水晶不是自带有打印按钮吗?
__________________________________________________________________________
自带的是导成PDF不是直接打印~~~~~~~~
__________________________________________________________________________