I really need some help with graphing/charts.
I found a great post that talks about inserting an Microsoft Office Excel Charts Object into a form and then using an action button to populate a chart as needed.
I’m now stuck. I need to know what properties/methods are available to further enchance the use of this object. Where can I go to find this information? I want to change the legend, colors, etc. Basically anything I can change on the object, I want to know how to code to change it.
The code I’m currently using is the following (courtesy of the post mentioned above):
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim Excel As Variant,Chart As Variant
Dim sheet As Variant
Set uidoc = ws.CurrentDocument
Set Excel = uidoc.GetObject("Microsoft Office Excel Chart")
Set chart = Excel.ActiveChart
Set sheet = Excel.Worksheets("Sheet1")
chart.ChartType =51 ' -4101 '-4102 is pie
chart.Elevation = 2
sheet.Cells(1,1) = "Operating System"
sheet.Cells(2,1) = "Windows Server 2003"
sheet.Cells(3,1) = "Windows XP"
sheet.Cells(4,1) = "Windows 2000"
sheet.Cells(5,1) = "Windows NT 4.0"
sheet.Cells(6,1) = "Other"
sheet.Cells(2,2) = Uidoc.FieldGetText("Field1")
sheet.Cells(3,2) = Uidoc.FieldGetText("Field2")
sheet.Cells(4,2) = Uidoc.FieldGetText("Field3")
sheet.Cells(5,2) = Uidoc.FieldGetText("Field4")
sheet.Cells(6,2) = Uidoc.FieldGetText("Field5")
Please, any help would be appreciated. But understand I’m not interested in any third party tools (the company won’t buy them) and I have to do this in the client.
So any help on understand how to further define/code this object would be greatly appreciated.
Thanks in advance!!!