FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Testrich.prg : print rtf-file
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Testrich.prg : print rtf-file
Posted: Tue Jan 31, 2006 12:34 PM

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 ?

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Testrich.prg : print rtf-file
Posted: Tue Jan 31, 2006 01:01 PM

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

Best Regards, Saludos



Falconi Silvio
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Testrich.prg : print rtf-file
Posted: Tue Jan 31, 2006 05:57 PM

Frank,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Testrich.prg : print rtf-file
Posted: Wed Feb 01, 2006 07:48 AM

Antonio,

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

Frank

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Testrich.prg : print rtf-file
Posted: Wed Feb 01, 2006 09:00 AM

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 ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Testrich.prg : print rtf-file
Posted: Wed Feb 01, 2006 03:46 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Testrich.prg : print rtf-file
Posted: Wed Feb 01, 2006 05:59 PM

Frank,

Already sent to you by email.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Testrich.prg : print rtf-file
Posted: Thu Feb 02, 2006 07:04 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Testrich.prg : print rtf-file
Posted: Thu Feb 02, 2006 08:07 AM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Testrich.prg : print rtf-file
Posted: Thu Feb 02, 2006 05:29 PM

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

Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Testrich.prg : print rtf-file
Posted: Thu Feb 02, 2006 05:33 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Testrich.prg : print rtf-file
Posted: Thu Feb 02, 2006 05:44 PM

Frank,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion