Testrich.prg : print rtf-file

Testrich.prg : print rtf-file

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

Postby Silvio » Tue Jan 31, 2006 1: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Antonio Linares » Tue Jan 31, 2006 5:57 pm

Frank,

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

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

Postby Frank Demont » Wed Feb 01, 2006 7:48 am

Antonio,

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

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

Postby Antonio Linares » Wed Feb 01, 2006 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Frank Demont » Wed Feb 01, 2006 3: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
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Antonio Linares » Wed Feb 01, 2006 5:59 pm

Frank,

Already sent to you by email.
regards, saludos

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

Postby Frank Demont » Thu Feb 02, 2006 7: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
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Antonio Linares » Thu Feb 02, 2006 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Frank Demont » Thu Feb 02, 2006 5: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
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Frank Demont » Thu Feb 02, 2006 5: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
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Antonio Linares » Thu Feb 02, 2006 5:44 pm

Frank,

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

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