User (Old forums)MemberApril 24, 2007 at 4:02 amPost count: 23064
I’m using Grid.NET 3.2 and I have the following problem with it:
I want to print the data stored in the grid. This works correctly and almost perfect for me. The only modification I want to make is that I want to put the report’s name and the company’s logo on the top of the report (not to PageHeader, just on the first page only)
I created a class based on TextRow, and I load the company logo into the textrow :
CompanyLogo = Bitmap.FromFile(_imagepath);
this.Text = _headerlabel;
this.Font = new Font( “Franklin Gothic Medium”, 16 );
this.HorizontalAlignment = Xceed.Grid.HorizontalAlignment.Center;
this.BackgroundImageAlignment = ContentAlignment.TopLeft;
this.BackgroundImage = CompanyLogo;
this.Height = 58;
this.ReportStyle.Font = this.Font;
this.ReportStyle.HorizontalAlignment = this.HorizontalAlignment;
this.ReportStyle.BackgroundImageAlignment = this.BackgroundImageAlignment;
this.ReportStyle.BackgroundImage = this.BackgroundImage;
In this case the custom textrow renders correctly on the screen. The problem is that if I export the report to TIFF only a white page appears. If I remove the last line, the report renders correctly (of course without the company logo)
The question is how could I print the company logo and the report name onto the top of the page?
Imported from legacy forums. Posted by Szabolcs (had 3842 views)User (Old forums)MemberApril 24, 2007 at 3:42 pmPost count: 23064
Can you <a href=”mailto:email@example.com”>submit</a> a sample application that uses the image in question and that reproduces the issue, so we can investigate this further?
Imported from legacy forums. Posted by André (had 219 views)User (Old forums)MemberMay 3, 2007 at 5:53 pmPost count: 23064
It is working in my test application, so something else must be wrong.
I’ll make a try – I hope I can figure out what could be wrong.
Imported from legacy forums. Posted by Szabolcs (had 363 views)User (Old forums)MemberMay 3, 2007 at 7:09 pmPost count: 23064
Okay, I spend a little time with it and the problem could be reproduced. I sent an email to the email you gave me containing a little project that demonstrates the problem.
Imported from legacy forums. Posted by Szabolcs (had 455 views)User (Old forums)MemberMay 3, 2007 at 7:19 pmPost count: 23064
Another strange thing with the example I sent to you that if I run it under VS it works correctly, the export tiff shows the image correctly. But if I quit from VS and start the application manually (from explorer) then the image export contains only a white page.
Imported from legacy forums. Posted by Szabolcs (had 379 views)
- You must be logged in to reply to this topic.