Guest User

Untitled

a guest
Aug 15th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. pViewer.ProcessingMode = ProcessingMode.Local
  2. Dim locReport As LocalReport = pViewer.LocalReport
  3. Dim parameterListe As New List(Of ReportParameter)
  4.  
  5.  
  6. Select Case pObj.GetType
  7. Case GetType(S88Model.Items.CEmType)
  8.  
  9. Dim emType As S88Model.Items.CEmType = pObj
  10. locReport.ReportEmbeddedResource = "TechEditor.ReportEmType.rdlc"
  11. Dim bs As New Windows.Forms.BindingSource()
  12. bs.DataSource = emType
  13.  
  14. Dim reportdatasource As New ReportDataSource()
  15. reportdatasource.Name = "EmTypeDataSet"
  16. reportdatasource.Value = bs
  17.  
  18. Dim bs2 As New Windows.Forms.BindingSource()
  19. bs2.DataSource = CProjectData.DefaultData
  20. Dim reportdatasource2 As New ReportDataSource()
  21. reportdatasource2.Name = "ProjectDataSet"
  22. reportdatasource2.Value = bs2
  23.  
  24.  
  25. locReport.DataSources.Add(reportdatasource)
  26. locReport.DataSources.Add(reportdatasource2)
  27. pViewer.RefreshReport()
  28.  
  29. ...
Add Comment
Please, Sign In to add comment