Rotate image

Stimulsoft Reports.NET discussion
Post Reply
ChristianH
Posts: 43
Joined: Fri May 25, 2007 2:54 am
Location: Austria

Rotate image

Post by ChristianH »

I have an image placed at my report and like to rotate it by 180 degrees.
Is there any solution for this problem ?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Rotate image

Post by Vital »

Can you say me how you load image to image component. Image stored in database or?

Thank you.
ChristianH
Posts: 43
Joined: Fri May 25, 2007 2:54 am
Location: Austria

Rotate image

Post by ChristianH »

Image is loaded via hyperlink that is stored in a dataset.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Rotate image

Post by Edward »

Please use the following code in BeforePrint event of the image component:

Code: Select all

System.Drawing.Image image = Stimulsoft.Base.Drawing.StiImageFromURL.LoadBitmap(yourURL);
image.RotateFlip(System.Drawing.RotateFlipType.Rotate180FlipNone);
ImageComponentInReport.Image = image; 
Thank you.
ChristianH
Posts: 43
Joined: Fri May 25, 2007 2:54 am
Location: Austria

Rotate image

Post by ChristianH »

Your solution for an image worked, thanks !

But we found out that we need a whole subreport to be rotated because there is a hierarchical band included that should be rotated, too.
We´d like to have a page divided into two columns. Left column normal, right column 180 degrees rotated...

Maybe it is possible to show a complete column rotated by 180 degrees ?
The column direction isn´t important, there would be 5 equal elements in each column.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Rotate image

Post by Edward »

Please see "CrossTabUsingCrossBands" sample report from the Demo.exe Application from the standard delivery.
Maybe it is the key for your task.

If not then please provide us with more details about your aim.

Thank you.
ChristianH
Posts: 43
Joined: Fri May 25, 2007 2:54 am
Location: Austria

Rotate image

Post by ChristianH »

Sorry but I can´t derive any solution from this demo.

Our aim is to create business cards with texts, images and a hierarchical band on it.
We´d like to have two columns with five cards on each.

The cards on the left column should be turned by 180 degrees.

We´ve tried to rotate each object itself and there´s no problem with the images and texts but the hierarchical band can´t be rotated.
Is there a possibility to change the order of levels within the hierarchical that results in up a inverted structure ?

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Rotate image

Post by Edward »

Your aim is clear now.

But we do not see any simple solution for your task now.

Thank you.
Post Reply