Page 1 of 1

Method insertpicture problem : RESOLVED

Posted: Tue Apr 26, 2016 9:24 am
by Silvio.Falconi
[b][/b]I call oRtf:insertpicture to insert an image on a rtf document but I have problem because it is inserted as icon as you can see here :

Image

i use this function from mypad

METHOD RTFPicture() CLASS TmyPad
LOCAL cFile := cGetFile( "Bitmap (*.bmp)| *.bmp|" + ;
"DIB (*.dib)| *.dib|" + ;
"PCX (*.pcx)| *.pcx|" + ;
"JPEG (*.jpg)| *.jpg|" + ;
"GIF (*.gif)| *.gif|" + ;
"TARGA (*.tga)| *.tga|" + ;
"RLE (*.rle)| *.rle|" + ;
"All Files (*.*)| *.*" , ;
RTF_VER, nGetFileFilter() )

if !Empty( cFile )
::WndChild():InsertPicture( cFile )
endif

RETURN NIL


how I can resolve it ?

Re: Method insertpicture problem

Posted: Tue Apr 26, 2016 9:59 am
by Antonio Linares
Have you tried to paste it ?

Re: Method insertpicture problem

Posted: Tue Apr 26, 2016 10:10 am
by Silvio.Falconi
yes with paste run ok but only bitmap
I must open a jpg with paint , copy and paste and it run ok

but I wish and i'll like insert picture from menu and select from directory as was before

I tried with draganddrop into not run

Re: Method insertpicture problem

Posted: Wed Apr 27, 2016 10:46 am
by Silvio.Falconi
resolved !!!!