ReportViewer.Render HTML输出奇怪的表格布局 [英] ReportViewer.Render html outputs strange table layout
问题描述
我是新来的报告服务,并有麻烦的报告正确地呈现我的aspx页面上。
I'm new to reporting services and having trouble getting a report to render correctly on my ASPX page.
看来不管我做什么,以在设计报告的布局,变化都被忽略,并且列保持与一个大空空白列它的右侧蜷缩在一起。这就是我的意思是:
It seems no matter what I do to the layout of the report in the designer, the changes get ignored and the columns remain scrunched together with a big empty white space column to the right of it. Here's what I mean:
不管我怎么改变列的宽度,它总是呈现这样的:
No matter what I change the widths of the columns to, it always renders like this:
起来,我可以看到正在应用一个固定的宽度,说白了空间TD 100%的宽度。
By looking at the mark up I can see that a fixed width is being applied, and that the white space is TD with a width of 100%.
这里的code我使用了/我继承:
Here's the code I'm using/I've inherited:
result = rvDashlet.ServerReport.Render("HTML4.0", "<DeviceInfo><HTMLFragment>True</HTMLFragment></DeviceInfo>", out mimeType, out encoding, out extension, out streamids, out warnings);
令人沮丧的是,previously本报告所呈现的图像,这是工作,看起来很不错。我已经将它更改为HTML,以便添加超链接。
The frustrating thing is, previously this report was being rendered as an image, which was working and looking fine. I've had to change it to HTML to allow for hyper-links to be added.
任何建议AP preciated!
Any suggestions appreciated!
推荐答案
由于升级到2005年报告服务2008年,它似乎已经解决了这个问题。
Since upgrading to reporting services 2008 from 2005, it seems to have solved the problem.
这篇关于ReportViewer.Render HTML输出奇怪的表格布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!