Salut,
Je sais qu'il est possible d'exporter des graphiques vers PowerPoint, mais le faire un par un est un peu fastidieux. J'ai essayé d'utiliser JSL pour reconnaître tous mes rapports ouverts et les exporter vers un seul PowerPoint avec une boucle for et la fonction save presentation(), mais cela ne fonctionne pas.
Je crois que j'ai du mal à trouver la fonction qui reconnaîtrait toutes mes fenêtres et tous mes rapports ouverts. Quelqu'un pourrait-il m'aider ?
Something like Get Window List( Type( "Reports" ) ); might help? E.g.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dist = dt << Distribution(
Continuous Distribution( Column( :height ), Process Capability( 0 ) ),
Continuous Distribution( Column( :weight ), Process Capability( 0 ) )
);
fitxy = dt << Bivariate( Y( :weight ), X( :height ) );
boxp = dt << Graph Builder(
Size( 528, 448 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ) ),
Elements( Box Plot( X, Y, Legend( 4 ) ), Points( X, Y, Legend( 5 ) ) )
);
winlist = Get Window List( Type( "Reports" ) );
Wait( 0 );
For( i = 1, i <= N Items( winlist ), i++,
pw = New Window( "output", <<WINDOW view=""></WINDOW>
<P>This saves the exact image of the report. To get the typical output with JMP tables, replace <CODE class=" language-jsl">pw with winlist[i] in the << Save Presentation lines and delete the lines with pw.
EDIT : le code original laissait beaucoup de fenêtres cachées appelées « Sortie », « Sortie 2 »... désolé.
C'est exactement ça ! Merci pour la solution, ça fonctionne parfaitement.:)