E
Evi
I'm using Access 2000
I want to insert a different excel chart into a report for each client in my
database.
To simplify
My Client Table, TblClient, contains a text field called SpreadPath which
contains the file path to each chart
eg
E:\DDocs\AccDBs\Chart1.xls
for Client1
The chart is the only item on the first page of the workbook.
I grouped my report by ClientID
I put my chart (ole1) into the ClientID header by clicking on an Unbound
Object Frame and choosing Excel Chart.
This gives me a default picture of a chart.
In ole1's Properties I have
OLE Type Allowed: Embedded (I actually wanted Linked but it tells me that
this is a read-only property so maybe that's just for Forms)
OLE Type Allowed: Either
I tried putting Chart Area into the Source Item and I tried leaving that out
(no difference)
In the On Format Event's Code Page for the Client ID Header I've put
Me.ole1.SourceDoc = Me.SpreadPath
There is a microsoft article on doing this with a form but most of the
things don't work in a report, causing an error message (ie you would not
Enable a chart in a report)
No error messages are caused when I Debug or Preview the Report but the
chart still just shows its default diagram and not my spreadsheet's chart.
Have I misunderstood or omitted something?
Evi
I want to insert a different excel chart into a report for each client in my
database.
To simplify
My Client Table, TblClient, contains a text field called SpreadPath which
contains the file path to each chart
eg
E:\DDocs\AccDBs\Chart1.xls
for Client1
The chart is the only item on the first page of the workbook.
I grouped my report by ClientID
I put my chart (ole1) into the ClientID header by clicking on an Unbound
Object Frame and choosing Excel Chart.
This gives me a default picture of a chart.
In ole1's Properties I have
OLE Type Allowed: Embedded (I actually wanted Linked but it tells me that
this is a read-only property so maybe that's just for Forms)
OLE Type Allowed: Either
I tried putting Chart Area into the Source Item and I tried leaving that out
(no difference)
In the On Format Event's Code Page for the Client ID Header I've put
Me.ole1.SourceDoc = Me.SpreadPath
There is a microsoft article on doing this with a form but most of the
things don't work in a report, causing an error message (ie you would not
Enable a chart in a report)
No error messages are caused when I Debug or Preview the Report but the
chart still just shows its default diagram and not my spreadsheet's chart.
Have I misunderstood or omitted something?
Evi