I have been evaluating Telerik reports for a few days now. I like what i want seen so far.bt i m facing a lil bit problem that some time when SQL query returns nothing then reporting process jst goes in to wait state.bt often it desplay the contents that no page to display bt some time it jst goes to wait state.normaly this prob. raise when Master report have a field be there is no field in subreport.the approach i m using is the following
Private Sub SubReport1_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles ItemQtyByContainerSubReport1.NeedDataSource
Dim subreport As Telerik.Reporting.Processing.Report = DirectCast(sender, Telerik.Reporting.Processing.Report)
cmd.CommandText = "SELECT ITM.ITM_NUMBER, ITM.ITM_NAME, SUM(PCQ.PCQ_QTY_IN_HAND * MFK.ITU_QUANTITY) AS Qty " & _
"FROM AFS_PCQ_PUR_CON_LINE_QTY_IN_HAND AS PCQ INNER JOIN " & _
"AFS_PUC_PURCHASE_CONTAINER AS PUC ON PCQ.PCQ_PUC_FK = PUC.PUC_ID INNER JOIN " & _
"AFS_ITM_ITEM AS ITM ON PCQ.PCQ_ITEM_NUMBER = ITM.ITM_NUMBER INNER JOIN " & _
"AFS_UOM_UNIT_OF_MEASURE AS UOM ON PCQ.PCQ_UOM_FK = UOM.UOM_ID INNER JOIN " & _
"AFS_ITU_ITEM_UNIT_OF_MEASURE AS MFK ON UOM.UOM_ID = MFK.ITU_UOM_FK AND ITM.ITM_ID = MFK.ITU_ITM_FK " & _
"WHERE (PCQ.PCQ_QTY_IN_HAND > 0) " & _
"GROUP BY PUC.PUC_CONTAINER_NUMBER, ITM.ITM_NUMBER, ITM.ITM_NAME " & HavingClause
adapter = New SqlDataAdapter(cmd.CommandText, sConnectionString)
adapter.Fill(ds)
subreport.DataSource = ds.Tables(0).DefaultView
End Sub
Hello,
This is the first time I've been using Telerik Reporting in a major project and I've been having some major problems.
At first, the development experience with TR was really nice up until the point where the VS designer quit working. After the designer quit working, everything has been downhill since....
ISSUE 1:
When I first start Visual Studio, and double click on a relatively detailed report, I get the following:
|
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. |
|
|
|
|
|
|
|
After 3 or 4 attempts closing and opening the report, the report will finally load. Very annoying. I'm not sure why this happens.
ISSUE 2: Support for domain objects in an IList<T> tend to be flaky. For example, if I set the DataSource property in the designer, and load sample data (similar to how Car/Cars List<Car> example, when trying to setup the Filters property, I get a Null Reference Exception from the designer.
ISSUE 3: Debugging/Troubleshooting the Reporting Framework is hard because of the signed reporting assemblies. I was able to build the Telerik Reporting from the source code and attempted to replace the "Release" version with my own "Debug" version to further troubleshoot the issue, but it seems that any pictures I've added to reports while using the "Release" versions get serialized and signed with the "Release" serialized object signatures in the report RESX resource file, so replacing the run time assemblies with "Debug" versions doesn't exactly work.
I've tried to setup a small demo project to demonstrate the problem but I'm not able to reproduce the issues. Anyone else getting designer problems? Any suggestions on debugging this? I've spent about 2 days already wasted trying to solve these issues looking for a final "work flow" to work with these telerik reports.
Thanks,
Report1
report1 = new Report1();//Main Report
Report2Sub1 rep2Sub1 = new Report2Sub1();//Sub report
//Bind Collection 1 to Main reportreport1.DataSource = list;
rep2Sub1.DataSource = lpmd;
Telerik.Reporting.
SubReport subr = new Telerik.Reporting.SubReport();
subr.ReportSource = rep2Sub1;
subr.Visible =
true;
//I made this subreport1 property to public instead of private.
I have used SP1 successfully to render a CCITT G4 compression report through the web viewer. But now when I automate it through code to churn out many reports in an automated fashion is goes back to LZW compression which is not what I want. Here is what i have in my code....please help! Am I formatting my extension wrong or feeding variables to the Render method incorrectly. The DPI changes but the compression stays as LZW. Thanks in advance for your help.
Doug
| string mimType = string.Empty; | |
| string extension = string.Empty; | |
| Encoding encoding = null; | |
| Report1 report1 = new Report1(); | |
| Hashtable deviceInfo = new Hashtable(); | |
| deviceInfo["OutputFormat"] = "TIFF"; | |
| deviceInfo["TiffCompression"] = "ccitt4"; | |
| deviceInfo["DpiX"] = 300; | |
| deviceInfo["DpiY"] = 300; | |
| byte[] buffer = Telerik.Reporting.Processing.ReportProcessor.Render( | |
| "TIFF300", report1, deviceInfo, out mimType, out extension, out encoding); | |
| using (MemoryStream stream = new MemoryStream(buffer)) | |
| { | |
| using (System.Drawing.Image img = System.Drawing.Image.FromStream(stream)) | |
| { | |
| img.Save(@"c:\temp\" + report1.GetType().Name + "." + extension, | |
| System.Drawing.Imaging.ImageFormat.Tiff); | |
| } | |
| } |
My extension in the web.config look like this....
| <Extension name="TIFF_CCITT4_300" |
| type="Telerik.Reporting.ImageRendering.ImageReport, Telerik.Reporting.Processing, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" |
| description="TIFF file (CCITT Group 4 300dpi)"> |
| <Parameters> |
| <Parameter name="TiffCompression" value="ccitt4" /> |
| <Parameter name="DpiX" value="300" /> |
| <Parameter name="DpiY" value="300" /> |
| </Parameters> |
| </Extension> |
| <Extension name="TIFF300" |
| type="Telerik.Reporting.ImageRendering.ImageReport, Telerik.Reporting.Processing, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" |
| description="TIFF file (CCITT Group 4 300dpi)"> |
| <Parameters> |
| <Parameter name="TiffCompression" value="ccitt4" /> |
| <Parameter name="DpiX" value="300" /> |
| <Parameter name="DpiY" value="300" /> |
| </Parameters> |
| </Extension> |
