#1 Re: PDF Engine » Can PDF Engine output a PDF file from QuickReport report generator ? » 2011-12-19 08:56:13

QuickReports printed in Landscape?

Hi,

I'm using Delphi 6 Enterprise, with exactly the same requirement to export QuickReports to PDF.

But I can't get the PDF to print in Landscape. I've searched the site and looked through the code. It just doesn't work for me.

The code above works great for portrait printing to PDF though. And looks Excellent.

#2 Re: GDI+ » GIF, TIF, PNG and JPG pictures TGraphic read/write via GDI+ » 2011-12-17 14:58:07

Re: Memory Leak

Thank you Sir Rufo and Mr. Administrator

#3 Re: GDI+ » GIF, TIF, PNG and JPG pictures TGraphic read/write via GDI+ » 2011-12-17 05:38:31

I found a way that works:

procedure TForm1.Button1Click(Sender: TObject);
var
    pic: TPngImage;
begin
    pic := TPngImage.Create;
    pic.LoadFromFile('C:\Users\christian.landman\Pictures\MotaData.png');
    img1.Picture.Bitmap := pic.ToBitmap;
end;

This works just fine - thank you! (Using Delphi 6 Enterprise - All updates loaded)

I'm just a bit disapointed that it doesn't work the way you say it does...

#4 Re: GDI+ » GIF, TIF, PNG and JPG pictures TGraphic read/write via GDI+ » 2011-12-17 05:23:53

Problem using SynGDI+

You state:  By adding the SynGdiPlus unit to your uses clause, some new TGraphic descendants are registered in your application to load GIF, TIF, PNG and JPG pictures. Use TPicture.LoadFromFile() method with the right extension, and the corresponding decoder will be used.

I used your TestSynGdiPlus app (works fine for .emf files), and dropped a Button on the form.

In the ButtonClick, I Add this:

       img1.Picure.LoadFromFile('c:\test.png');

and I get the following error:

      Unknown picture file extension (.png)

What am I doing wrong?

Board footer

Powered by FluxBB