Background in Reports

Stimulsoft Reports.NET discussion
Post Reply
zreptil
Posts: 18
Joined: Tue Aug 19, 2008 1:17 am

Background in Reports

Post by zreptil »

Hi,

i am testing Reports.Net because we want to create a software that uses this component. But we need the possibility to place forms that are delivered to us as pdf in the background. I played around, but found no way to make this usable. I think it is not possible in this release. Are there any plans to make it possible in future releases?

I also tried to import an emf in the designer since it may be possible to convert a pdf to an emf. But when i load an emf (about 1 - 2 MB) i always get an exception

error cs1647

since this feature is very important for us (placing pdf in background) i need to know if there is a possibility to place an image or better a pdf as background in a report. this also should work in the designer since the programmers need the background to place the datafield at the correct places. is this possible?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Background in Reports

Post by Edward »

Hello.

In the current version of Stimulsoft Reports.Net you can use as a background only images and it is preferably that size of those images would not be too large.

All reports components including images are being serialized into .Net class using C# or VB.Net syntax. Framework has limitations on size of that class. I think that it was the reason of those exceptions you received.

Now we do not have plans about implementing the possibility of pdf-rendering inside of Stimulsoft Reports.Net.

So only one thing I can suggest you is to use low-resolution screenshots inside of the designer as a watermark for programmers in order their would be able to place necessary components in the Design-time.

Thank you.
Gerald Clette
Posts: 2
Joined: Tue Sep 16, 2008 3:06 am

Background in Reports

Post by Gerald Clette »

Hello

I've experimented quite the same thing with an emf file set as a background image in a page.
My emf is not too big (676ko) and is well displayed in the design tab.
When I click on the Preview, I've got an error message : error CS1647 : Une expression est trop longue ou complexe pour compiler près de 'Reports.Report.InitializeComponent()' (yes, it's a french version)
And when I click on the code : bye, bye, no more StiDesigner and no message.

If I try to do it in a designer launch by code, there is "An unhandled exception of type 'System.StackOverflowException' occurred in Stimulsoft.Editor.dll"

OK, I will try with a simple picture but I think that it will not be that beautiful to zoom in on the picture.

Gérald
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Background in Reports

Post by Vital »

Hello,

This problem related to report code. Report engine must convert all images to c# or VB.Net code. In result you receive very big c# or vb.Net code and it does not work. But you can load image in watermark in runtime of report rendering. For example code in BeginRenderEvent of report:

Code: Select all

page1.Watermark.Image = Image.FromFile("myimage.emf");
Thank you.

Post Reply