Page 1 of 1

side effects of setting Border for DataBand? or a bug?

Posted: Mon Jul 09, 2007 5:50 pm
by sw
Hi,

When the Border property of a databand is set to All, then image returned by GetThumnail() has a watermark under each row of data. The watermark is set to the name of the databand. But on the preview window and if using Export, the watermark is not in the rendered image.

Could you please give an example of how to remove the watermark for the DataBand component?

thanks,

sw

side effects of setting Border for DataBand? or a bug?

Posted: Wed Jul 11, 2007 5:35 am
by Edward
Please provide us with more details about this issue. We couldn't reproduce this bug.

Please show your code or send a sample to Image for analysis.

Thank you.

side effects of setting Border for DataBand? or a bug?

Posted: Thu Jul 12, 2007 12:29 am
by sw
Steps to reproduce the problem:

1. After adding a databand on the report, add two columns from a data source.
2. set the border property of the databand to [All]
3. using the following code to generate the image

string repfile = @"report.mrt";
StiReport report = new StiReport();
report.Load(repfile);
report.Compile();
report.Render(false);
int cnt = 1;
foreach (StiPage page in report.RenderedPages) {
Bitmap img = page.GetThumbnail(640, 800);
img.Save(string.Format("report{0}.jpg", cnt++), ImageFormat.Jpeg);
}

Notice the watermark on the generated image files. Please note the the preview in the designer and exported image using designer do not have this problem.

sw

side effects of setting Border for DataBand? or a bug?

Posted: Thu Jul 12, 2007 9:20 am
by Guest
Sorry, but we still couldn't reproduced this problem, our generated image files haven't watermark in the each row. Please send to Image one of this image and the mrt file. Also please tell us your version of StimulReport and date of the build. And additionally, try to download the last build, because we check your problem on it.

Thank you.