请参阅下面的代码
Dim dfg As DataSet = searchobj.searchmethodsampleno(sampleno) 如果是dfg.Tables(“entertest_table”)。Rows.Count> 0然后 昏暗的reportviewerobj作为新的Form1 Dim obj As New CrystalReport_invoice reportviewerobj.getDSprint(dfg,obj)
obj.PrintToPrinter(2,False,0,1)
它只是将内容保存为pdf文件并打开pdf文件。但不打印。请指导