Danijel
snip[ one report I must to use hard code report. ]
I wrote an article / some articles and only use Hand coded reports with Rp2 .. I did work to get RP3 working for Craig Dawson and think I wrote and article on this also but eons ago.
Have not touched RP3 for probably 10 years.
In VO2.5 looking at old repo.. cannot find the AEFS..
See: Report Pro 3 Handcoded by Oscar Sneider / Erik Visser / Phil McGuinness
looks like we used CLASSMATE....
LOCAL oMainWindow AS StandardShellWindow
SetDefault( "%CavoSamplesRootDir%\Explorer\")
//
RDDSETDEFAULT("DBFCDX") // This changes the Memo ext from .dbv / .dbt to .fpt
//
cmGUIDLLInit() // Initialise Class Mate GUI
ReportProInit() // Intialise REPORTPRO
//
oMainWindow := StandardShellWindow{SELF}
oMainWindow:Show(SHOWCENTERED)
//
SELF:Exec()
METHOD Report CLASS StandardShellWindow
LOCAL oReport AS ReportServer
LOCAL lDirect2Printer AS LOGIC
oReport := CreateInstance( #ReportServer, #RPro_Hard_Coded, SELF)
//
lDirect2Printer := FALSE // preview first
oReport:Landscape := TRUE
oReport:StartPrinting( lDirect2Printer )
There was a trick to get the handle by Eric and Oscar and I did my stuff from there in technique.
METHOD Init( symPrintServer, oVOOwner ) CLASS ReportServer
// Code segments by Erik Visser - "
[email protected]" + Phil McGuinness - "
[email protected]"
IF ! IsNil( oVOOwner )
_oOwner := cWindow{} // Create the CM cWindow{} class
_oOwner:hWnd := oVOOwner:Handle() // Plug out VO hanfle into the handle of the CM cWindow.
ENDIF
_oPrinter := cPrinter{ _oOwner } // Create the CM cPrinter{} class with substituted handle
_oPrinter:previewmodal := TRUE
// ---- create our Handcoded "RPro_Hard_Coded" class
_oForm := CreateInstance( symPrintServer, oVOOwner )
_oForm:Printer := _oPrinter // Plug in our CM cPrinter to our Report class.
_oPrinter:PrintServer := _oForm // Plug in our Report object to cPrinter / Printserver
//
RETURN SELF
Looks like standard hand code report from there...
Sorry so long ago..... hope this helps that it is possible.
Phil McGuinness
==========
On Wednesday, December 30, 2020 at 9:37:17 PM UTC+11,
[email protected] wrote:
Hi,
does anyone use ReportPro 3 whitout RP designer to display images in a report?.All existing samples refer to ReportPro 2 (rpPrinter and method DrawBMP or _DrawBMP). All reports created in RPdesigner work fine with images (jpg,bmp etc) unfortunately for
one report I must to use hard code report. I will appreciate any help and example.
Of course it is very urgent as always.
Best Wish
Danijel
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)