EasyReport - path of image files

EasyReport - path of image files

Postby max » 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
User avatar
max
 
Posts: 128
Joined: Fri Jun 30, 2006 2:14 pm
Location: Ancona - Italy

Re: EasyReport - path of image files

Postby Otto » Wed Jun 10, 2009 11:31 am

Hello Max,
this is my code:

Code: Select all  Expand view


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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Re: EasyReport - path of image files

Postby max » 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.
User avatar
max
 
Posts: 128
Joined: Fri Jun 30, 2006 2:14 pm
Location: Ancona - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 110 guests

cron