Testrich.prg : print rtf-file

Post Reply
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Testrich.prg : print rtf-file

Post 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 ?
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

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

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post by Frank Demont »

Antonio,

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

Frank
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

Already sent to you by email.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post 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
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

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

Antonio Linares
www.fivetechsoft.com
Post Reply