Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

after adding sub report -- it throw exception

Dear all,

I have below code. Don't know why it happens??

檔案 DailyOperation {C15B64C2-4358-49CA-80E5-5A6CF00A4B56}.rpt 錯誤:

無法連接: 登入參數錯誤。

Dim adp1 As New SqlDataAdapter(cmd1)

Dim adp As New SqlDataAdapter(cmd)

adp.Fill(ds, "llcsSP_RPTDailyOperation")

adp1.Fill(ds, "DTDiscountReport")

Dim rd As New ReportDocument

rd.Load(Path + "\Reports\DailyOperation.rpt")



rd.PrintOptions.PrinterName = LaserPrinter

rd.PrintToPrinter(1, False, 0, 0) // throw exception

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question