Hello, I am a beginer of jsl . I have one question about set picture size and save to PPT from example jsl script below. ( currently I use 'Save presentation' command to export charts or pictures to powerpoint but I'm struggling with how to manage picture size in powerpoint by JSL )
Not sure Is there anyway to adjust picture size in ppt file using JSL or not?
Best regards,
Names Default To Here( 1 );
originalImg = New Image( "$SAMPLE_IMAGES/tile.jpg" );
img = New Image( "$SAMPLE_IMAGES/tile.jpg" );
imgSize = 800;
img << Set Size( {imgSize, imgSize} );
GG=New Window( "Test",
V List Box(
pb = Picture Box( img )
)
);
GG << Save Presentation( "$TEMP/jmp_example.pptx" );
Open( "$TEMP/jmp_example.pptx" );
imgSize = 100;
img << Set Size( {imgSize, imgSize} );
GG=New Window( "Test",
V List Box(
pb = Picture Box( img )
)
);
GG << Save Presentation( "$TEMP/jmp_example.pptx",append );
Open( "$TEMP/jmp_example.pptx" );