Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Public Sub PreviewPickList(ByVal PickListNo As Integer, Optional ByVal ShopOrderId As Integer = 0)
  2. Dim cryRpt As New ReportDocument
  3. cryRpt.Load(Application.StartupPath & "InventoryPickListReportCR.rpt")
  4. PickListViewer.ReportSource = cryRpt
  5.  
  6. Dim dtPickList As New DataTable
  7. dtPickList = DTEngines.GetPickList(PickListNo, ShopOrderId)
  8.  
  9. cryRpt.SetDataSource(dtPickList)
  10. PickListViewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None
  11. PickListViewer.Refresh()
  12. Me.Show()
  13. End Sub
  14.  
  15. cryRpt.Load("PickListReportCR.rtp")
  16.  
  17. cryRpt.Load(Application.StartupPath & "PickListReportCR.rpt")
  18.  
  19. dim doc as new ReportDocument
  20. doc.Load(Server.MapPath("PickListReportCR.rpt"))
  21. doc.SetDatabaseLogon(ReportServerDSUserName, ReportServerDSPassword,ReportServerDomain, "DatabseName", false)
  22. CrystalReportViewer1.ReportSource = doc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement