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%3EImportieren%20Sie%20PNG-Bilder%20in%20jede%20Zelle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-728982%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EHallo%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EGibt%20es%20eine%20M%C3%B6glichkeit%2C%20die%20Histogrammbilder%20(.png)%20mit%20jsl%20in%20die%20Excel-Zelle%20zu%20importieren%20(die%20Zelle%20nach%20Bild%20anzupassen)%3F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EEtwas%20wie%20das.....%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%20zum%20Durchlaufen%20von%20Spaltengruppen%20zum%20Exportieren%20der%20Bilder%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%3EDanke%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%3EAutomatisierung%20und%20Skripterstellung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenexploration%20und%20-visualisierung%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%3EBetreff%3A%20Importieren%20Sie%20PNG-Bilder%20in%20jede%20Zelle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-729009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIch%20denke%2C%20Sie%20m%C3%BCssten%20mit%20JMP%20etwas%20anderes%20verwenden.%20Verwenden%20Sie%20JMP%2C%20um%20Bilder%20in%20einem%20Verzeichnis%20zu%20speichern%2C%20und%20verwenden%20Sie%20dann%20eine%20andere%20Software%2FProgrammiersprache%20(Python%2C%20VBScript%2C%20Excel-Makro%2C%20Powershell%20usw.)%2C%20um%20diese%20Bilder%20in%20Excel-Zellen%20zu%20verschieben%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%3EKopieren%20von%20PNG-Bildern%20aus%20einer%20JMP-Datei%20nach%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%3EDatentabelle%20mit%20Bildern%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%3EBetreff%3A%20Importieren%20Sie%20PNG-Bilder%20in%20jede%20Zelle%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-729036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIch%20konnte%20so%20weit%20kommen%3A%20eine%20Datentabelle%20mit%20Bildern%20%3CEM%3E%3CSTRONG%3Eprotokollieren%3C%2FSTRONG%3E%3C%2FEM%3E%20und%20%3CEM%3E%3CSTRONG%3Eals%20RTF%20speichern%3C%2FSTRONG%3E%3C%2FEM%3E%20.%20In%20OpenOffice%20Writer%20sieht%20das%20RTF%20ziemlich%20gut%20aus.%20Es%20befindet%20sich%20in%20einem%20Tabellenelement%2C%20das%20mit%20Zeilen%20und%20Spalten%20kopiert.%20Leider%20f%C3%BCgt%20OpenOffice%20Calc%20die%20Bilder%20nicht%20ein.%20(Ich%20habe%20PNG%20als%20RTF-Bildformat%20ausgew%C3%A4hlt.)%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%3ESie%20k%C3%B6nnten%20versuchen%2C%20diese%20Tabelle%20von%20MS%20Word%20nach%20MS%20Excel%20zu%20kopieren%20und%20einzuf%C3%BCgen%20und%20andere%20Ergebnisse%20zu%20erhalten%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