Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

png not showing up in PDF report

anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: png not showing up in PDF report

Unread post 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
johan
Posts: 392
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium

Re: png not showing up in PDF report

Unread post by johan »

André,

It doesn't work for me :(

Do you have an other idea of changes you made?

Johan
anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: png not showing up in PDF report

Unread post 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..
johan
Posts: 392
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium

Re: png not showing up in PDF report

Unread post by johan »

fine thanks
anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: png not showing up in PDF report

Unread post 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 :-(
johan
Posts: 392
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium

Re: png not showing up in PDF report

Unread post 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
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: png not showing up in PDF report

Unread post 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.
Attachments
snap_logo.png
snap_logo.png (65.73 KiB) Viewed 7334 times
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: png not showing up in PDF report

Unread post by admin »

massiws,

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

Steven
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: png not showing up in PDF report

Unread post by massiws »

Steven,
here is my db!

Thanks very much.
Attachments
db.sql.zip
(128.85 KiB) Downloaded 283 times
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: png not showing up in PDF report

Unread post by admin »

massiws,

This is what I get.
Capture.PNG
Capture.PNG (110.26 KiB) Viewed 7331 times
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
Locked