[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Quartam Software Forums •Critical issue with images inside a report
Page 1 of 1

Critical issue with images inside a report

Posted: Mon Nov 21, 2011 1:16 pm
by JosepM
Hi Jan,

I have very critical problem that I need solve asap.

I have a report with a image that each time is different, like a product datasheet that show the features and the product image.
Each time I call the report previously I copy the product image to the report folder with the image name that the report is waiting for.

So my "productXYZ.jpg" is copied to "product-image.jpg", the report found the image and all is fine.

But If I left open the preview and call other product report with other image, then the first preview get the second image report, so both reports have the same image. :(

Also I have the same problem if I put the report call into a repeat loop. But in debug mode don't happen.

How to solve this? Can I pass the image name like a parameter like other fields?

Thanks in advance,
Josep M

Re: Critical issue with images inside a report

Posted: Thu Nov 24, 2011 6:30 am
by JanSchenkel
Hi Josep,

Those are all logical consequences of the way images are handled in Quartam Reports now: you have to use a fixed path rather than an expression, and the LiveCode engine keeps track of which image controls have which filename so that it can cache the data. Revamped image handling is on the shortlist for version 1.2, which I've had to put on the backburner due to an avalanche of deadlines at the day-job (my last holiday was in April, and that was the week of RunRevLive"11 and the week before that to build my presentations and sample code).

I will get back to it as soon as possible, and keep you posted.

Jan Schenkel.

Re: Critical issue with images inside a report

Posted: Thu Nov 24, 2011 8:55 am
by JosepM
Hi Jan,

I know this kind of situations... but come back asap... Please... :(

And adding the sourcepath as parameter? then QR can handle the images, and in this way we can create a report with product images as a field of the detail, like appear the barcodes...

Make sense?


Salut,
Josep M