简体   繁体   English

RDLC 报告表 output 显示表外无组织

[英]RDLC Report table output show outside the table and unorganized

i am using .net framework 4.5 and try it with 4.6 same problem in my main project i also use visual studio 2017我正在使用 .net 框架 4.5 并在我的主项目中尝试使用 4.6 相同的问题我也使用 Visual Studio 2017

so when i try to creat table in my report file *.rdlc the output go outside, whene simple text reamain in design position, my form using scale mode DPI and evrything on default, i populate the repport like this:因此,当我尝试在我的报告文件 *.rdlc 中创建表时,output go 外部,当设计 Z4757FE07FD492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D492A8BE0EA6A760D683D6EZ 默认情况下,在我的表单上使用缩放模式,并在我的表单上使用缩放模式

SqlDataAdapter sda = new SqlDataAdapter("select name from Product", connection);
DataSet1 set = new DataSet1();
sda.Fill(set, "Product");
ReportDataSource dataSource = new ReportDataSource(REPORT_DATASET_NAME,set.Tables[0]);
reportViewer1.LocalReport.DataSources.Add(dataSource);
reportViewer1.RefreshReport();

so DataSet1 is one table Product with one column name, wherever i dont have probleme with data i have only bad output organisation,所以 DataSet1 是一个具有一个列名的表产品,只要我对数据没有问题,我只有糟糕的 output 组织,

remark: i try it with new project it work fine and also try to recreat all classes that involve repport from scratch with only default setting and simple exemple like this, same problem.备注:我在新项目中尝试它工作正常,并尝试从头开始重新创建所有涉及报告的类,只有默认设置和像这样的简单示例,同样的问题。

output that i have: output 我有:

在此处输入图像描述

What i found when some form that is inside another form and try to call third form in my case the form with ReportViewer attach to it so when i have this chain Form1->Form2->FormReportViewer somehow the design becom unorganized so what i did to fix this problem Form1->Form2->Trigger Event In Form1->Form1 Open FormReportViewer and the outup is exactly like i designed so this question is still open because i dont know what cause this problem in multi form call wherever if you have this same problem maybe you find this answer usfeul当某个表单位于另一个表单中并尝试在我的情况下调用第三种表单时,我发现了什么,带有 ReportViewer 的表单附加到它,所以当我有这个链 Form1->Form2->FormReportViewer 时,设计变得杂乱无章,所以我做了什么解决这个问题 Form1->Form2->Trigger Event In Form1->Form1 打开 FormReportViewer 并且输出与我设计的完全一样,所以这个问题仍然是开放的,因为我不知道是什么原因导致这个问题在多表单调用中出现,如果你有这个相同的问题也许你找到这个答案 usfeul

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM