Saving multiple graphs to rtf
Posted: Mon Sep 11, 2017 8:16 am
Hi,
I have a question regarding the options when saving multiple graphs to rtf. At the moment I have a lot of graphs that I would like to export to a Word document. I have tried to create a spool object for all the graphs and then save as rtf. The problem is that all graphs are saved on individual pages and I cannot find any options about exporting, say, six graphs per page. Is there any way of programming around this problem and choose to export six graphs per page to one document?
One option is to merge the graphs per some defined group, but I would like the code to be more general in order to make it sustainable for future revision. Below is my current code for this option where I group according to a desired group structure. However, then all the figures for the groups are merged and exported to one individual page in Word.
Thank you!
Regards,
Nils Landén
I have a question regarding the options when saving multiple graphs to rtf. At the moment I have a lot of graphs that I would like to export to a Word document. I have tried to create a spool object for all the graphs and then save as rtf. The problem is that all graphs are saved on individual pages and I cannot find any options about exporting, say, six graphs per page. Is there any way of programming around this problem and choose to export six graphs per page to one document?
One option is to merge the graphs per some defined group, but I would like the code to be more general in order to make it sustainable for future revision. Below is my current code for this option where I group according to a desired group structure. However, then all the figures for the groups are merged and exported to one individual page in Word.
Code: Select all
For %A {%Age}
For %S series01 series02
%Gr_{%S} = %Gr_{%S} + " " + "Dia1" + %S + %A + "s" ' Here I refer to graphs for the first group
Next
For %S series03 series04 series05
%Gr_{%S} = %Gr_{%S} + " " + "Dia2" + %S + %A + "s" ' Here I refer to graphs for the second group
Next
Next
Spool Dia
For %S {%Ser2}
Graph mydia{%S}.merge {%Gr_{%S}}
mydia{%S}.align(3,1,2)
Dia.append mydia{%S}
Next
Dia.Save(T=rtf, Mode=C) {%Dir}AKU
Thank you!
Regards,
Nils Landén