FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Method insertpicture problem : RESOLVED
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Method insertpicture problem : RESOLVED
Posted: Tue Apr 26, 2016 09:24 AM
[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 :



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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Method insertpicture problem
Posted: Tue Apr 26, 2016 09:59 AM

Have you tried to paste it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Method insertpicture problem
Posted: Tue Apr 26, 2016 10:10 AM

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

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Method insertpicture problem
Posted: Wed Apr 27, 2016 10:46 AM

resolved !!!!

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion