RTF Class ...

RTF Class ...

Postby Rimantas » Thu Mar 29, 2007 4:57 am

Hi !
If to open rtf file which contains two tables with Word , you will see correct view - both tables are parallelly . But if open this file with RTF class ( with TestRich ) , then the tables are going in sequence - first is above and second below . How to avoid this ?
Rimantas U.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Postby driessen » Thu Mar 29, 2007 10:22 pm

Rimantas,

Sorry that I have no answer to your question, but I want to add a problem that I have with the sample TestRich.

In the PRG-file, the dll RICHED20.DLL is used. Where can I find this DLL-file ?

Thank you.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

tRichEd

Postby César E. Lozada » Fri Mar 30, 2007 2:35 am

Use riched20.dll version 5.50 or upper and you will see rtf files rightly showed. Also, you can zoom rtf and previews are as expected. Zooming methods are listed below and must be called with %zoom, example, oRtf:SetZoom(65) //65%

Add to tRichEd class (or extend class)
DATA nW0

#define EM_GETZOOM (WM_USER + 224)
#define EM_SETZOOM (WM_USER + 225)

METHOD SetZoom(nZoom)
METHOD GetZoom(nZoom)

METHOD SetZoom(nZoom)
Local nNum:=nZoom, nDen:=100, k
DEFAULT ::nW0:=::nWidth-20
FOR k:=2 to 5 step 3
DO WHILE nNum%k=0 .and. nDen%k=0
nNum/=k; nDen/=k
ENDDO
NEXT
IF nNum>0 .and. nNum<64 .and. nDen>0 .and. nDen<64
::SetSize(::nW0*nZoom/100+20,::nHeight)
::SendMsg(EM_SETZOOM, nNum, nDen)
ENDIF
return nil

METHOD GetZoom()
Local nZoom,nNum:=0, nDen:=0
::SendMsg(EM_GETZOOM, nNum, nDen)
nZoom:=100*nNum/Max(nDen,1)
return nZoom

Regards.
César Lozada
User avatar
César E. Lozada
 
Posts: 128
Joined: Wed Oct 26, 2005 12:18 pm
Location: Los Teques, Miranda, Venezuela

Postby Enrico Maria Giordano » Fri Mar 30, 2007 9:06 am

driessen wrote:In the PRG-file, the dll RICHED20.DLL is used. Where can I find this DLL-file ?


You should already have it in your c:\windows\system32 directory.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby driessen » Fri Mar 30, 2007 10:54 pm

Found.

Thanks, Enrico.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby Marcelo Via Giglio » Mon May 21, 2007 10:19 pm

Hello,

it's possible to create a table in a RTF document from FiveWin? somebody have the solution?

Regards

Marcelo
Marcelo Via Giglio
 
Posts: 1065
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 28 guests