Method insertpicture problem : RESOLVED

Method insertpicture problem : RESOLVED

Postby Silvio.Falconi » Tue Apr 26, 2016 9: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 :

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
Silvio.Falconi
 
Posts: 6804
Joined: Thu Oct 18, 2012 7:17 pm

Re: Method insertpicture problem

Postby Antonio Linares » Tue Apr 26, 2016 9:59 am

Have you tried to paste it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41331
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Method insertpicture problem

Postby Silvio.Falconi » 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 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: 6804
Joined: Thu Oct 18, 2012 7:17 pm

Re: Method insertpicture problem

Postby Silvio.Falconi » Wed Apr 27, 2016 10:46 am

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
User avatar
Silvio.Falconi
 
Posts: 6804
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 12 guests