Below is the source code, click the button for the first time, show the report data is normal, but click the button again, the data change after report shows or the first don't refresh,
To solve, how to break?
Dim Myreport=New Mod_MatbarCode ()
Myreport. Report_MatName. Text=A_txt_MatName. Text
Myreport. Report_BarCode. Text=A_txt_MatID. Text
Myreport. Report_MatType. Text=A_txt_MatType. Text
Dim printControl1=New PrintControl ()
PrintControl1. PrintingSystem=Myreport. PrintingSystem
Dim PrintBarManager=New PrintBarManager ()
PrintBarManager. Form=printControl1
PrintBarManager. The Initialize (printControl1)
PrintBarManager. The MainMenu. Visible=False
PrintBarManager. AllowCustomization=False
PrintControl1. PrintingSystem. SetCommandVisibility (PrintingSystemCommand. Print, DevExpress.XtraPrinting.Com mandVisibility. The Toolbar)
Myreport. CreateDocument ()
GC_MatBarcode. Controls. The Add (printControl1)
PrintControl1. The Dock=DockStyle. The Fill