Telerik Forums
Reporting Forum
1 answer
144 views
Hi,


I have a hierachical Grid with 25 datasource for inner grid.
A lot of them are set  visible = false if they have no data.


I must export them to pdf. But I need page footer header with different layout base on the User.
And i had hard time trying to export them using the documentation .


This is my 1rst time using the telerik report.
So i will ask so simple stupid question, to learn what i must do and where i m going with this.
So question may evolve.



1/. Is it possible to have conditional element?
I saw conditional formating but what i want to achieve seems a bit more difficult.
 - Exemple: Displaying adress as in the invoice report template
If i have Adress 1, 2, 3, 4, 5 .
If i Create text box Label and Value and stack them , How can i make them hidden if there is no value?
If instead i concatenate the adress in SQL , How do i Use my 'string.Replace("\r\n", "<br />")' ?


Is there a way to do stuff with out this WYSIWYG ?
 
 
2/. Is there a Way to have contidional table ?
I have a lot of nested grid I hide them if they are empty.
How can i do that in a report? Is the report going to save some room even if the element is hidden ?
Is there a way to bind the grid to the page in code behind ?


3/. Is there any code behind somewhere i can write some control logic ?


4/. How to achieve Condition Layout ?
An other logo , change Blue to red , an other companies name ?
Can I store all of this in DB and Get the images text or color form it ?



I know i have a lot of question. You dont have to answer them all.
You can pick one and go in deept. Or just a list of  { "yes", "no" , "NotThatWay" }.


The only thing i need to know is :
 Is this possible to achiev it with Telerik report ?
 
I will do all the research i just need to be in the right direction!
 
 Thank you for your time.
 
 Regards,
 Pierre LEBON
Katia
Telerik team
 answered on 28 Jul 2016
1 answer
503 views
I have a report that is one page long. When I go to print preview or print it, a second page is printed with just the page header on it (no details).
Stef
Telerik team
 answered on 28 Jul 2016
1 answer
138 views
What level of accessibility does the HTML 5 viewer or the legacy web form report viewer strive to achieve? I had a quick look at the Help for reports but cannot seem to find anything.
Stef
Telerik team
 answered on 28 Jul 2016
1 answer
111 views

is it posible to disable automatic autosize in visualstudio editor?

i mean resizing of parent control if add new control which size is larger the parent control?

Stef
Telerik team
 answered on 28 Jul 2016
3 answers
570 views

Can someone provide a demo with using the asp.net Webform viewer?  I realize this is a legacy control but I wanted to try this one first before tackling the HTML 5 viewer.

 

I have created a simple Crosstab report with nothing but a crosstab object and a textbox title.  I have assigned the report to a ObjectDataSource to a custom business data entity class with public properties although I did not use any of the fields.  I just want to be able to load this report with the header text using that viewer.

Below is the HTML and code behind for the report viewer:

<form id="form1" runat="server">
  
        <telerik:ReportViewer ID="ReportViewer1" runat="server">
            
        </telerik:ReportViewer>
  
    </form>

protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var typeReportSource = new Telerik.Reporting.TypeReportSource();
                typeReportSource.TypeName = "QuiCx.Web.Pages.Demos.KendoReporting.CrossTab";
                this.ReportViewer1.ReportSource = typeReportSource;
            }
        }

 

When I run the report viewer I get this error:

Invalid report type
Value cannot be null.
Parameter name: type
at Telerik.Reporting.Processing.TypeReportDocumentResolver.Resolve(IProcessingContext context, TypeReportSource rs)
at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(IProcessingContext context, ReportSource rs, Boolean loadParameters)
at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass1.<Resolve>b__0(IReportDocumentResolver r)
at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](IProcessingContext context, ReportSource source, Func`2 func)
at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(IProcessingContext context, ReportSource source, Boolean loadParameters)
at Telerik.ReportViewer.WebForms.ParametersPage.ResolveReportDocument(ReportSource reportSource)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

 

 

Can someone point me in the right direction?  The demos provided does not use this report viewer.  All of them use the HTML 5 viewer.

 

Stef
Telerik team
 answered on 28 Jul 2016
7 answers
518 views
I have a problem with the Report Viewer. I installed Reporting Q3 2010 and the project I imported Telerik.ReportViewer.WinForms, but in my toolbox is not displayed is the component (http://imageshack.us/photo/my-images/560/telerikreport.jpg/).

What should I do to my Report Viewer appears, as shown at this link: http://www.telerik.com/help/reporting/winforms-report-viewer-embedding.html

Thanks for your help:)
Stef
Telerik team
 answered on 28 Jul 2016
1 answer
755 views

Hi everybody.

recently I was working in a project where the requirement was save "trdx" files into a DB and show them in a asp.net web form application. As additional information, the data to populate the reports were in XML files.

so I realized to late that "Telerik reporting" doesn't accept xml as datasource or at least I couldn't find a direct way to achieve that. I read that you can transform the xml into objectdatasource but it was little complicated due the dynamism in the project.

at the end I decided to work with a user function that basically accept two parameters 

- XPathExpression => the xpath query to find the data in the xml string

- xmlDocument  => the xml string, I pass it to my report by a parameter.

The function :   

[Function(Category = "XPath", Namespace = "XmlTelerikReporting", Description = "Find the information from the default report parameter XmlDataSource using XPath expressions ")]
  public static object XmlValue(string XPathExpression, string xmlDocument)
  {
 
      #region XmlValue
      try
      {
          XmlDocument xmlDoc = new XmlDocument();
          xmlDoc.LoadXml(xmlDocument);
          xmlDoc.DocumentElement.RemoveAttribute("xmlns");
          XmlDocument newDom = new XmlDocument();
          newDom.LoadXml(System.Text.RegularExpressions.Regex.Replace(
                  xmlDoc.OuterXml
                  , @"(xmlns:?[^=]*=[""][^""]*[""])",
                  "",
                  System.Text.RegularExpressions.RegexOptions.IgnoreCase | System.Text.RegularExpressions.RegexOptions.Multiline));
 
 
          object xmlXPathValue = newDom.SelectSingleNode(XPathExpression) != null ? newDom.SelectSingleNode(XPathExpression).Value : null;
 
          return xmlXPathValue;
 
      }
      catch (Exception ex)
      {
          //a pretty ans secret way to catch exceptions
      }
      #endregion       
  }

 

How to use in expression:

 = XmlTelerikReporting.XmlValue(   "//@parametertofind" , Parameters.xmlDocument.Value   )

I will really  appreciate any feedback regarding to my code display above.

and it will be awesome if you implement something in telerik reporting in order to accept XML files as Datasource

Regards!

 

  

 

Stef
Telerik team
 answered on 27 Jul 2016
1 answer
230 views

Hi,

I have a Asp.Net MVC web application. Using Telerik html report viewer. I am using Visualstudio 2015 to open the solution. When I open ReportDesigner file, see Telerik report controls like , table, crossbar, list are missing in VS toolbox.

 I tried exporting controls from Telerik.Reporting dll in toolbox but no luck.

Do I have to install any plugin to get all these controls listed in the toolbox of VS 2015?

 

Stef
Telerik team
 answered on 27 Jul 2016
1 answer
366 views

Hi, is there a way to retreive the old and good query designer like the one in visual studio? Honestly, the fact that we can type the query while in the designer or, lost what we put outside of it, is a pain in the ass and is not usefull at all. The one in Visual Studio is perfect. Why it is gone?

thanks,

Stef
Telerik team
 answered on 26 Jul 2016
3 answers
129 views
Hello,
 
Is support for the displaying of reports available in the MVC .Net Core 1.0 release yet?

 

Thanks you,

Scott

Stef
Telerik team
 answered on 26 Jul 2016
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?