FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour EasyReport - path of image files
Posts: 130
Joined: Fri Jun 30, 2006 02:14 PM
EasyReport - path of image files
Posted: Wed Jun 10, 2009 10:22 AM

I started use EasyReport as a tool for my reports: i think is great for who is searching for a report tool that have the right measure of low and high level, and specially for its total compatibility with the logic of simple printing of Clipper.

I have this question: i note that if i put a .bmp file (for example LOGO.BMP) in a printarea of my .vrd file that phisically exists in a certain directory (example C:\EXAMPLE), in the relative .V01 ascii file generated, it has a reference with the complete path ( C:\EXAMPLE\LOGO.BMP ) and all works fine in my pc. At runtime and while i open the .vrd file with VRD.EXE, the visual tool of EasyReport.
But when i distribute my application to my customer's pc, i have to change it manually in the .V01 ascii file specifying ".\LOGO.BMP" (i put all .bmp files in the same dir of my .exe file) to print my bitmap at runtime, because he has the application installed in a different path.
I think leave this mode, but i note that the visual ambient of EasyReport (VRD.EXE) when i open my .vrd file doesn't display the bitmap.
Someone can help me ?
Thank you.

Max

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: EasyReport - path of image files
Posted: Wed Jun 10, 2009 11:31 AM
Hello Max,
this is my code:

Code (fw): Select all Collapse
local cLogo  := GetPvProfString("LOGO", "NAME", ".\logo\logo.bmp", ".\INI\WINHOTEL.INI")  
 PRINTAREA 1 OF oVrd;
      ITEMIDS { 700,201,…
      ITEMVALUES {cLogo, cRechnung, …

In Report designer I set an ID, here f.e. 700.

Regards,
Otto
Posts: 130
Joined: Fri Jun 30, 2006 02:14 PM
Re: EasyReport - path of image files
Posted: Wed Jun 10, 2009 12:06 PM

Thank you, Otto.
Setting an ID in Report Designer and passing ".\LOGO.BMP" from FWH source is the obvious solution, and works fine.
bye.

Continue the discussion