Page 2 of 4

Re: png not showing up in PDF report

Posted: Sun Jul 08, 2012 10:46 pm
by anorman
Johan,

I actually just fixed mine. I deleted the productionnu2 folder, and extracted it again. It then started working, and I was at a loss to explain it until I realized that when I upgraded and found the broken \r\n stuff in the reports, I applied the patches that Steven made for me for an older version. I had forgotten I had done this, but that seems to have fixed it in my case, anyway.

- Andre

P.S. The thread where I used those patches is here.. It 'seemed' related at the time, which is why I tried them and forgot I had swapped those files for the distribution files..

http://forums.nubuilder.cloud/viewtopic.php?f=3&t=7847

Re: png not showing up in PDF report

Posted: Mon Jul 09, 2012 9:33 am
by johan
André,

It doesn't work for me :(

Do you have an other idea of changes you made?

Johan

Re: png not showing up in PDF report

Posted: Mon Jul 09, 2012 10:52 pm
by anorman
Sorry, I believe that is the only change I made to that version..

I am currently playing with the latest version (2.7.1).. I will let you know how that makes out when I get to writing a new report..

Re: png not showing up in PDF report

Posted: Tue Jul 10, 2012 8:02 pm
by johan
fine thanks

Re: png not showing up in PDF report

Posted: Wed Jul 11, 2012 3:59 am
by anorman
Johan,

2.7.1 seems to be working fine.. On aside note, is it possible that you didn't apply the SQL schema updates? I'm sure Steven can chime in and say definitively if a schema update can or cannot cause the pdf png's to not show up. The only reason I bring this up is because as I am thinking about it, I also re-applied the schema changes to that database, but I don't recall if it was working prior to that (After I restored the original .php files) or not.. It's possible that the schema is what fixed it. I simply don't recall which sequence I did first :-(

Re: png not showing up in PDF report

Posted: Wed Jul 11, 2012 7:06 am
by johan
André,

Thanks for your reply. Good for you it's working.

I've created several databases in Nubuilder. In none of those png shows in pdf.
My first post was in september 2011. So if I missed an update it must have been before september.

Johan

Re: png not showing up in PDF report

Posted: Wed Jul 11, 2012 12:52 pm
by massiws
I'm having the same problem. :(

I follow all previous suggestions:
- I upload the logo image in Setup > Image in png format (numeric code);
- I create a new object graph in ReportBuilder selecting the image just uploaded;
- in the form I added two extra buttons: the first (with the printIt() function) display the report with logo, the second (with pdfIt() function) don't display the image (see attached).

Also reduced the dimensions of the image, now 13 KiB 100x110px, but nothing change.

Two questions:
- Is there a relationship between the Display Type field in the Report tab and the function in Action button (printIt() or pdfIt()) to open the report?
- Perhaps is it necessary a reference to image-object in PHP Data Code field?

Thanks.

Re: png not showing up in PDF report

Posted: Wed Jul 11, 2012 9:56 pm
by admin
massiws,

If you send me a copy of a database with the problem I'll have a look.

Steven

Re: png not showing up in PDF report

Posted: Thu Jul 12, 2012 11:04 am
by massiws
Steven,
here is my db!

Thanks very much.

Re: png not showing up in PDF report

Posted: Thu Jul 12, 2012 11:33 pm
by admin
massiws,

This is what I get.
Capture.PNG
I did nothing but upload your db.
anorman wrote:Johan,

I actually just fixed mine. I deleted the productionnu2 folder, and extracted it again. It then started working, and I was at a loss to explain it until I realized that when I upgraded and found the broken \r\n stuff in the reports, I applied the patches that Steven made for me for an older version. I had forgotten I had done this, but that seems to have fixed it in my case, anyway.

- Andre
Have you tried what Andre suggested?

Maybe you need to completely reinstall nuBuilder.

Steven