Method insertpicture problem : RESOLVED

Post Reply
User avatar
Silvio.Falconi
Posts: 7141
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Method insertpicture problem : RESOLVED

Post 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 ?
Last edited by Silvio.Falconi on Wed Apr 27, 2016 1:53 pm, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Antonio Linares
Site Admin
Posts: 42549
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 78 times
Contact:

Re: Method insertpicture problem

Post by Antonio Linares »

Have you tried to paste it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7141
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Method insertpicture problem

Post 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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
Posts: 7141
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Method insertpicture problem

Post by Silvio.Falconi »

resolved !!!!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
Post Reply