Page 1 of 1

Testrich.prg : print rtf-file

Posted: Tue Jan 31, 2006 12:34 pm
by Frank Demont
Hello,

I am the intention to use Rich edit class .

Testing with Testrich.prg , i changed

REDEFINE BUTTON ID 998 ACTION oRich:Print("Bakker")//MsgInfo( GetClassName( oRich:hWnd ) )


But the program doesn't answer anymore.

Can we print a oRich object ?

Posted: Tue Jan 31, 2006 1:01 pm
by Silvio
someone, I do not remember, sent me richpad .
in it application there is the class rtf and a rtfpreview
it print very well but i have compiled it and i not try with xharbour.

Can you to antonio if i can pubblish these files because one of authors is linares ( i saw on rtfpreview and richpad his name)

regards
falconi silvio

Posted: Tue Jan 31, 2006 5:57 pm
by Antonio Linares
Frank,

Please review samples\TestRtf.prg for a full working richedit demo, including printing.

Posted: Wed Feb 01, 2006 7:48 am
by Frank Demont
Antonio,

The same result : using print methode , and the program doen't do anything anymore .

Frank

Posted: Wed Feb 01, 2006 9:00 am
by Antonio Linares
Frank,

We have just tested samples\TestRtf.prg sample and it properly prints, using FWH 2.7 January build. I may send you the EXE so you can run it there.

Have you modified any class (printer or richedit) yourself ?

Posted: Wed Feb 01, 2006 3:46 pm
by Frank Demont
Antonio

When i test , i use no changed source files , every test from samples directory uses only the fwh code.

Maybe it is a good idea to test your exe-file

Maybe the aplication depending from riched20.dll , give troubles with which version is used ?

Frank

Posted: Wed Feb 01, 2006 5:59 pm
by Antonio Linares
Frank,

Already sent to you by email.

Posted: Thu Feb 02, 2006 7:04 am
by Frank Demont
Antonio

Your exe works , but i can't build a exe that prints.
I tryed with borland and xbuild.

I have the screen to choose a printer , then when i change to another printer ir freezes

szAppName : testrtf.exe szAppVer : 0.0.0.0 szModName : hungapp
szModVer : 0.0.0.0 offset : 00000000

Frank

Posted: Thu Feb 02, 2006 8:07 am
by Antonio Linares
Frank,

You should be able to build samples\TestRtf.prg and print with it, with no problems at all. Please check that you are not using modified modules.

Using standard FWH 2.7 January build, it should work.

Posted: Thu Feb 02, 2006 5:29 pm
by Frank Demont
Antonio

I am not :

Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"B:\MCLS\XhbFeb\lib" -LIBPATH:"B:\MCLS\XhbFeb\c_lib" -LIBPATH:"B:\MCLS\XhbFeb\c_lib\win" -LIBPATH:"c:\FWH\lib" "objx\testrtf.obj" "objx\testrtf.res" C:\xHBFeb\c_lib\Win\version.lib FiveHCM.lib FiveHMX.lib OptG.lib xhb.lib dbf.lib ntx.lib cdx.lib rmdbfcdx.lib activex.lib crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"testrtf.exe"<<<

c:\fwh is where the januari build is located

Posted: Thu Feb 02, 2006 5:33 pm
by Frank Demont
Or with borland :

C:\FWH\SAMPLES\Obj\testrtf.Obj +
D:\BCC55\Lib\C0W32.OBJ, +
C:\FWH\SAMPLES\testrtf.Exe, +
, +
D:\xHarbour\Lib\dbffpt.lib +
D:\xHarbour\Lib\optgui.lib +
D:\xHarbour\Lib\rtl.lib +
D:\xHarbour\Lib\vm.lib +
D:\xHarbour\Lib\gtwin.lib +
D:\xHarbour\Lib\lang.lib +
D:\xHarbour\Lib\macro.lib +
D:\xHarbour\Lib\common.lib +
D:\xHarbour\Lib\pp.lib +
D:\xHarbour\Lib\rdd.lib +
D:\xHarbour\Lib\dbfntx.lib +
D:\BCC55\Lib\CW32.LIB +
D:\BCC55\Lib\IMPORT32.LIB +
D:\xHarbour\Lib\dbfcdx.lib +
C:\FWH\LIB\Fivehc.lib +
C:\FWH\LIB\Fivehx.lib +
D:\xHarbour\Lib\hbsix.lib,, +
C:\FWH\SAMPLES\Resource\testrtf.Res

Posted: Thu Feb 02, 2006 5:44 pm
by Antonio Linares
Frank,

Could you please use samples\buildx.bat just to test this sample ? Thanks.