Telerik Forums
Reporting Forum
1 answer
510 views
Hi Telerik,

Please respond to this question asap, because I am in a deep ...

I would like to have a two datasources. So I must use table. How can I join the report datasource a and the table datasource? I have also another question in this forum which is ignored, so I am trying to find another way how to solve my problem.

http://www.telerik.com/community/forums/reporting/telerik-reporting/how-to-specify-connection-string-for-detail-report.aspx

Thank you

Tom
Elian
Telerik team
 answered on 26 Oct 2012
3 answers
234 views
I use an HTMLTextbox in my report to add line breaks in a field with <br />. When exports to Excel, the line breaks disappear. 

I know there is something in the Design Considerations for Report Rendering that says formatting is removed from the Excel export. Is there something I can do to get the line breaks in the cell, or is this something that will be fixed in a future version?
Peter
Telerik team
 answered on 26 Oct 2012
6 answers
91 views

Hi, I'm facing problem with latest reporting (Q3 2012). I'm trying to format charts on one report, but everytime I save and build, those changes are reverted as if I did nothing.

What I'm trying to change is to:

  • hide series labels
  • change series empty value display type
  • change PlotArea dimension properties (margins, etc.)
  • change display mode of legend and its positioning

I'm using VS2008, fully patched. In this project, I use Reporting Q3 2012, but I have installed Reporting Q2 2009 SP1 and Reporting Q1 2012.

Is there any way how to fix it myself/known workaround. Thanks in advance.

Daniel

Chavdar
Telerik team
 answered on 26 Oct 2012
1 answer
78 views
Hello, I have a question. Is there some possibility to "Stick" the starting point of my chart to Y-axis? Now it is some free space between Y axis and my chart. You can see an example in attachment.

I will be glad if you could help me.

Regards, Pawel Janda
Elian
Telerik team
 answered on 26 Oct 2012
5 answers
914 views
I'm trying to follow these instructions to directly export reports from their definitions to the end file (Word or PDF) without passing through a viewer. This is the requirement of the application I'm doing.

I know how to obtain the PDF given the IReportDocument, but how do I get an IReportDocument from the TRDX file I just created using the Standalone builder?
Peter
Telerik team
 answered on 25 Oct 2012
1 answer
177 views
What I want to do is pull a field from SQL that contains XML, parse that XML into a class, then use that as my object data source.
I have sqlDataSource1 that will get the text (XML) field from the DB using my ReportParameter (so it only gets 1 record).
I also have objectDataSource1 that will display the data from my class.
Right now objectDataSource 1 is the Report's datasource.

I also have a NeedDataSource event trigger on the report.

The question is "Can I have the event trigger tell the sqlDataSource1 to go get the data, parse it, then feed it to objectDataSource1 to display on the report?"

This sample shows how to read in an xml file, parse it, then feed it to data source to display.  So I imagine I should be able to do it.  Does someone do the same thing?  Am I going about it the hard way?
Peter
Telerik team
 answered on 25 Oct 2012
1 answer
159 views
Hello TElerik,

My web application enables a user to choose database at runtime. I have a more connection strings in a web.config.

Selected connection string key is stored in a session.

I can read this key during loading a page with a report web viewer.

My main report is accepting connection string parametr using its constructor, but I dont know, how to specify this for a details subreports.

Can you advice me how to solve this?

Thank you very much.

Tom
Elian
Telerik team
 answered on 25 Oct 2012
1 answer
222 views

I am trying to build a dynamic report with many tables which have different columns definition.

My source is a list of data table

My code is:

public EntregaReport()
       {
 
 
           InitializeComponent();
           var list = Entrega.GetEntregaDocumentos("BERK_122");
           HtmlTextBox textboxHeader;
           HtmlTextBox textBox;
           foreach (DataTable dataTable in list)
           {
               Table table = new Table();
                
 
               //SetTableProperties(ref table);
 
               detail.Items.Add(table);
               table.ColumnHeadersPrintOnEveryPage = true;
               table.DataSource = dataTable;
              
 
               Telerik.Reporting.HtmlTextBox textboxGroup;
               Telerik.Reporting.HtmlTextBox textBoxTable;
               table.ColumnGroups.Clear();
               table.Body.Columns.Clear();
               table.Body.Rows.Clear();
               int colCount = dataTable.Columns.Count;
               for (int i = 0; i <= colCount - 1; i++)
               {
                   Telerik.Reporting.TableGroup tableGroupColumn = new Telerik.Reporting.TableGroup();
                   table.ColumnGroups.Add(tableGroupColumn);
                   table.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Unit.Inch(1)));
 
                   textboxGroup = new Telerik.Reporting.HtmlTextBox();
                   textboxGroup.Style.BorderColor.Default = Color.Black;
                   textboxGroup.Style.BorderStyle.Default = BorderType.Solid;
                   textboxGroup.Value = dataTable.Columns[i].ColumnName;
                   textboxGroup.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));
                   tableGroupColumn.ReportItem = textboxGroup;
 
                   textBoxTable = new Telerik.Reporting.HtmlTextBox();
                   //textBoxTable.Style.BorderColor.Default = Color.Black;
                   //textBoxTable.Style.BorderStyle.Default = BorderType.Solid;
                    textBoxTable.Value = "=Fields." + dataTable.Columns[i].ColumnName;
                   textBoxTable.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));
                   table.Body.SetCellContent(0, i, textBoxTable);
                   table.Items.AddRange(new ReportItemBase[] { textBoxTable, textboxGroup });
 
               }
               
 
           }
       }


It´s seems the tables are created but the data is not bind, do I miss something.

Thanks Jochanan

Elian
Telerik team
 answered on 25 Oct 2012
7 answers
251 views
Help! I am supposed to demo some reporting tomorrow but after deploying to my web server I get the error:

"Report is unavailable or session has expired"

The reports are built into their own class library. Then I use the report viewer in a web page to view the report.

This works perfectly on my development machine running locally. But, after compiling and deploying I get the above error.

Help!!!
Alberto
Top achievements
Rank 1
 answered on 24 Oct 2012
1 answer
100 views
Hi guys,

is it possible to serialize/deserialize using ReportXmlSerializer from/to specific report base class?

Core problem is that I need to access IDictionary in my report. Because of that I introduced user function that helps to solve this. But user function must be placed in an assembly where the actual report is placed. My report is xml serialized, so I have decided to create common base class which will change the assembly where telerik is searching for user functions. And there I stand in front of the problem that ReportXmlSerializer does not seems to support specific report base class.

Thanks for answers
Chavdar
Telerik team
 answered on 24 Oct 2012
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?