Skip to Content

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

Regarding ProgressBar

Hi All,

I tried Following code for ProgressBar. But i heard that ProgressBar not working in SAP B1 2005. That's y following code not working.

But in Financial Module -> Financial reports -> Financial -> In that plz select any one Like Balance Sheet. In that select Date and To date. And click on Ok button. After clicking how it shows ProgressBar. Like that i want to show ProgressBar.

Try

Dim PBar As SAPbouiCOM.ProgressBar

PBar = SBO_Application.StatusBar.CreateProgressBar("Start...", 27, True)

PBar.Stop()

System.Runtime.InteropServices.Marshal.ReleaseComObject(PBar)

PBar = Nothing

Catch ex As Exception

End Try

Thanks and Regards

Harish Patil

replied

Hi ,

Just put a FOR loop and in that u increment ur progress bar and then after a specific period of time u stop the progeress bar and then open ur User form.

Just check the sample below.

Dim oProgressBar As SAPbouiCOM.ProgressBar = Nothing
oProgressBar = objSBOAPI.SBO_Appln.StatusBar.CreateProgressBar("Opeing new form...", 17, True)
for i as interger = 0 to 60
oProgressBar.Value = i
Next
'Open ur form here and do ur functionality.
oProgressBar.Stop()

Hope it helps,

Vasu Natari.

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