I use Access to send letters.
The gist of the process is a report is run for each recipient and exported to PDF.
I have a new project coming down that will involve using charts for each recipient. The charts will need data varied by recipient.
I am thinking use an Excel file to template out the charts and update the data within Excel.
Somehow I have to deal with Excel consuming the right data. Since this is iterative execution, I am wondering what the best way to write the data is in this scenario? Use a recordset with dynamic SQL and write directly to a range so I do not need to update a querydef? Some other way?
Then there is the issue of putting the charts into the "letter", keeping in mind the final product is a PDF.
[ol 1]
[li]Automate Excel to print the chart to PDF as well as the Access report and then automate Adobe to merge the two PDF's (fortuantely I have a class written for adobe).[/li]
[li]A little searching shows that charts can be exported to Gif's using the export method of the Chart Object which can be used in turn to set the picture property of an image control (or use a fixed name).[/li]
[li]Use an unbound opject frame. Set the Source Doc property to the workbook path and the Source Item property to the name of the worksheet + reference to the chart. [/li]
[/ol]
Amongst all that and any other alternatives I have not turned up, which way should I go?
The gist of the process is a report is run for each recipient and exported to PDF.
I have a new project coming down that will involve using charts for each recipient. The charts will need data varied by recipient.
I am thinking use an Excel file to template out the charts and update the data within Excel.
Somehow I have to deal with Excel consuming the right data. Since this is iterative execution, I am wondering what the best way to write the data is in this scenario? Use a recordset with dynamic SQL and write directly to a range so I do not need to update a querydef? Some other way?
Then there is the issue of putting the charts into the "letter", keeping in mind the final product is a PDF.
[ol 1]
[li]Automate Excel to print the chart to PDF as well as the Access report and then automate Adobe to merge the two PDF's (fortuantely I have a class written for adobe).[/li]
[li]A little searching shows that charts can be exported to Gif's using the export method of the Chart Object which can be used in turn to set the picture property of an image control (or use a fixed name).[/li]
[li]Use an unbound opject frame. Set the Source Doc property to the workbook path and the Source Item property to the name of the worksheet + reference to the chart. [/li]
[/ol]
Amongst all that and any other alternatives I have not turned up, which way should I go?