cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-728982%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EImportar%20im%C3%A1genes%20Png%20en%20cada%20celda%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-728982%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%C2%BFHay%20alguna%20manera%20de%20importar%20las%20im%C3%A1genes%20del%20histograma%20(.png)%20a%20la%20celda%20de%20Excel%20(ajustar%20la%20celda%20por%20imagen)%20usando%20jsl%3F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EAlgo%20como%20esto.....%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jackie__0-1709219913225.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1709219913225.png%22%20style%3D%22width%3A%20394px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1709219913225.png%22%20style%3D%22width%3A%20394px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jackie__0-1709219913225.png%22%20style%3D%22width%3A%20394px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F61679i063F4E4D1D916486%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jackie__0-1709219913225.png%22%20alt%3D%22Jackie__0-1709219913225.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EJSL%20para%20iterar%20sobre%20grupos%20de%20columnas%20para%20exportar%20las%20im%C3%A1genes%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt2%3D%20Open(%20%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22%20)%3B%0Amaindir%20%3D%20Pick%20Directory(%20%22Choose%20a%20directory%20to%20save%20distribution%20images%22%20)%3B%0Adistributiondir%20%3D%20Concat(%20maindir%20%7C%7C%20%22%2FDistribution_Images%22%20)%3B%0A%0A%0ACol_List%20%3D%20dt2%20%26lt%3B%26lt%3B%20Get%20Column%20Group(%20%22Processes%22%20)%3B%0A%0Adt2%20%26lt%3B%26lt%3B%20select%20column%20group(%20%22Processes%22%20)%3B%0ATestName%20%3D%20dt2%20%26lt%3B%26lt%3B%20Get%20Selected%20Columns%3B%0ATests%20%3D%20N%20Items(%20Col_List%20)%3B%09%09%09%09%09%09%09%0A%0ACreate%20Directory(%20distributiondir%20)%3B%0A%0ACaption(%20%22Processing.....%22%20)%3B%0Await(0)%3B%0A%0AFor(%20ii%20%3D%201%2C%20ii%20%26lt%3B%3D%20Tests%2C%20ii%2B%2B%2C%0ACaption(%20%22Processing.....%20%22%20%7C%7C%20char(ii)%20%7C%7C%20%22%20of%20%22%20%7C%7C%20char(Tests)%2C%20Font%20Size(13)%2C%20spoken(0)%20)%3B%0A%09vc2%20%3D%20dt2%20%26lt%3B%26lt%3B%20distribution(%0A%09%09Stack(%201%20)%2C%0A%09%09Continuous%20Distribution(%0A%09%09%09Column(TestName%5Bii%5D%20)%2C%0A%09%09%09Horizontal%20Layout(%201%20)%2C%0A%09%09%09Normal%20Quantile%20Plot(%201%20)%2C%0A%09%09%09Customize%20Summary%20Statistics(%0A%09%09%09Std%20Err%20Mean(%200%20)%2C%0A%09%09%09Upper%20Mean%20Confidence%20Interval(%200%20)%2C%0A%09%09%09Lower%20Mean%20Confidence%20Interval(%200%20)%0A%09%09)%2C%0A%09%09%09Vertical(%201%20)%2C%0A%09%09%09Process%20Capability(%200%20)%0A%09%09%09%0A%09%09)%0A%09)%3B%0A%0A%0A%0A%09vc2%20%26lt%3B%26lt%3B%20Save%20Picture(%20distributiondir%20%7C%7C%20%22%2F%22%20%7C%7C%20Char(%20ii%20)%20%7C%7C%20%22.png%22%2C%20%22png%22%20)%3B%0A%09vc2%20%26lt%3B%26lt%3B%20Close%20Window%3B%0A)%3B%0A%0ACaption(%20%22Saved!!!!%22%20)%3B%0Await(0.4)%3B%0A%0ACaption(%20remove)%3B%0Await(0)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EGracias%2C%3C%2FP%3E%3CP%3EJackie%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-728982%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExploraci%C3%B3n%20y%20visualizaci%C3%B3n%20de%20datos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-729009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Importar%20fotos%20Png%20en%20cada%20celda%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-729009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECreo%20que%20tendr%C3%ADas%20que%20usar%20algo%20m%C3%A1s%20con%20JMP.%20Utilice%20JMP%20para%20guardar%20im%C3%A1genes%20en%20el%20directorio%20y%20luego%20alg%C3%BAn%20otro%20software%2Flenguaje%20de%20programaci%C3%B3n%20(python%2C%20vbscript%2C%20excel%20macro%2C%20powershell%2C%20....)%20para%20mover%20esas%20im%C3%A1genes%20a%20celdas%20de%20Excel.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FCopying-PNG-images-from-JMP-file-to-Excel%2Fm-p%2F251539%23U251539%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3ECopiar%20im%C3%A1genes%20PNG%20de%20un%20archivo%20JMP%20a%20Excel%3C%2FA%3E%20%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2Fdata-table-with-images-gt-Excel%2Fm-p%2F594289%23U594289%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3Etabla%20de%20datos%20con%20im%C3%A1genes%20-%26gt%3B%20Excel%3C%2FA%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-729036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Importar%20fotos%20Png%20en%20cada%20celda%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-729036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPude%20llegar%20hasta%20aqu%C3%AD%3A%20%3CEM%3E%3CSTRONG%3Eregistrar%3C%2FSTRONG%3E%3C%2FEM%3E%20una%20tabla%20de%20datos%20con%20im%C3%A1genes%20y%20%3CEM%3E%3CSTRONG%3Eguardarla%20como%3C%2FSTRONG%3E%3C%2FEM%3E%20RTF.%20En%20OpenOffice%20Writer%2C%20el%20RTF%20se%20ve%20bastante%20bien.%20Est%C3%A1%20en%20un%20elemento%20de%20tabla%20que%20se%20copia%20con%20filas%20y%20columnas.%20Desafortunadamente%20OpenOffice%20calc%20no%20pega%20las%20im%C3%A1genes.%20(Eleg%C3%AD%20PNG%20para%20el%20formato%20de%20imagen%20RTF).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22You%20might%20try%20copy%2Fpaste%20this%20table%20from%20MS%20Word%20to%20MS%20Excel%20and%20get%20different%20results%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22You%20might%20try%20copy%2Fpaste%20this%20table%20from%20MS%20Word%20to%20MS%20Excel%20and%20get%20different%20results%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F61682i077D7F9F5D0834AB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22bigclass.png%22%20alt%3D%22You%20might%20try%20copy%2Fpaste%20this%20table%20from%20MS%20Word%20to%20MS%20Excel%20and%20get%20different%20results%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EYou%20might%20try%20copy%2Fpaste%20this%20table%20from%20MS%20Word%20to%20MS%20Excel%20and%20get%20different%20results%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPuede%20intentar%20copiar%20y%20pegar%20esta%20tabla%20de%20MS%20Word%20a%20MS%20Excel%20y%20obtener%20resultados%20diferentes.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Jackie_
Level VI

Import Png pics in each cell

Hello,

 

Is there a way to import the Histogram (.png) pictures into the excel cell (fit the cell by image) using jsl?

 

Something like this.....

Jackie__0-1709219913225.png

JSL to iterate over column groups to export the pictures

Names Default To Here( 1 );
dt2= Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
maindir = Pick Directory( "Choose a directory to save distribution images" );
distributiondir = Concat( maindir || "/Distribution_Images" );


Col_List = dt2 << Get Column Group( "Processes" );

dt2 << select column group( "Processes" );
TestName = dt2 << Get Selected Columns;
Tests = N Items( Col_List );							

Create Directory( distributiondir );

Caption( "Processing....." );
wait(0);

For( ii = 1, ii <= Tests, ii++,
Caption( "Processing..... " || char(ii) || " of " || char(Tests), Font Size(13), spoken(0) );
	vc2 = dt2 << distribution(
		Stack( 1 ),
		Continuous Distribution(
			Column(TestName[ii] ),
			Horizontal Layout( 1 ),
			Normal Quantile Plot( 1 ),
			Customize Summary Statistics(
			Std Err Mean( 0 ),
			Upper Mean Confidence Interval( 0 ),
			Lower Mean Confidence Interval( 0 )
		),
			Vertical( 1 ),
			Process Capability( 0 )
			
		)
	);



	vc2 << Save Picture( distributiondir || "/" || Char( ii ) || ".png", "png" );
	vc2 << Close Window;
);

Caption( "Saved!!!!" );
wait(0.4);

Caption( remove);
wait(0);

Thanks,

Jackie

2 REPLIES 2
jthi
Super User

Re: Import Png pics in each cell

I think you would have to use something else with JMP. Use JMP to save images to directory and then some other software/programming language (python, vbscript, excel macro, powershell, ....) to move those images to excel cells

Copying PNG images from JMP file to Excel 

data table with images -> Excel 

-Jarmo
Craige_Hales
Super User

Re: Import Png pics in each cell

I was able to get this far: journal a data table with images, save-as RTF. In OpenOffice Writer, the RTF looks pretty good. It is in a table element that copies with rows and columns. Unfortunately OpenOffice calc does not paste the pictures. (I did pick PNG for the RTF picture format.)

You might try copy/paste this table from MS Word to MS Excel and get different resultsYou might try copy/paste this table from MS Word to MS Excel and get different results

 

 

Craige

Recommended Articles