Telerik Forums
Reporting Forum
1 answer
880 views
Hi,
I would like to add an automatic number (autoincrementing number/field) to the text under each table and picture in my report, like:
Table {autonumber} shows annual income.. etc.

Is there a way I can create a field, or something that I can insert in a htmlTextbox along with the text, that dynimically auto increments a value with each entry? 
Steve
Telerik team
 answered on 31 May 2012
1 answer
162 views

I would like to limit the number of X-Axis Label Steps to around 3 or 4 labels.  The amount of data displayed on the chart can vary from just 5 points to hundreds and the number of points for each Pen can vary significantly. 

It is my assumption that the “XAxis.LabelStep” property assumes a constant number of points for each ChartSeriesItemCollection.  I had originally set it to

                Chart1.PlotArea.XAxis.LabelStep = Convert.ToInt32(MaxPoints / 3) +1;

But I get a strange group of characters in the upper left portion of the trend and the incorrect number of Labels created.  Given my objective, what would be the ideal way to specify the number of Labels for the X-Axis?

Steve
Telerik team
 answered on 31 May 2012
1 answer
222 views
I have a multivalue parameter named "@CountryID" with the "Allow Null" property = True.  Works fine if I select the null checkbox or select a single value.  BUT, when I select multiple values I get a SQL exception.

SQL to look like this:


"select * from Countries where CountryID IN (isnull(@CountryID,CountryID))"

The error I get when I pass in MULTIPLE VALUES is ... "The isnull function requires 2 argument(s)"

I'm not sure what is happening here ... but it looks like when multiple values are specified the @CountryID isn't being set to something like "1,2,3" as I would expect.

Thanks - Wayde
Steve
Telerik team
 answered on 31 May 2012
1 answer
160 views
I have created a reports library and using it to display multiple charts in reportbook in a project.
It runs fine on my local pc but gives error when put live.
the error it gives -

An error has occurred while processing Chart 'Chart1': A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

can u suggest where the issue can be?
i've checked the connection string and it is fine.
Steve
Telerik team
 answered on 31 May 2012
7 answers
364 views
I need programetically code to create new  document map in my report.
Gunasekar
Top achievements
Rank 1
 answered on 31 May 2012
2 answers
237 views
IDE : Visual Studio 2010
Reporting Version : Q1 2012 (6.0.12.215)

While I'm trying to assign a ReportSource to a sub report, I get "Object reference not set to an instance of an object.". I had googled this error and came upon this Telerik Post saying to run either in preview or set programatically. I tried both.

Preview Pane :

"Exception has been thrown by the target of an invocation. Object reference not set to an instance of an object."

Programmatically :

"One or more parameters are not set or have invalid values."

After seeing the error, I checked all the parameters and everything seemed to be getting/sending a value. After a few more tries, I finally just took out the parameters and set an ID I knew had data in my database and tried running again. Gave me the same error. I then went through and turned on (Debug -> Exceptions) and set to throw all Common Language Runtime Exceptions, but nothing was thrown.
Jacob
Top achievements
Rank 1
 answered on 30 May 2012
1 answer
99 views
How do I export radgridview to pdf with images for winforms? Please help me 
Ivan Petrov
Telerik team
 answered on 30 May 2012
1 answer
187 views

Dear Telerik team ,
      I am using a silverlight report viewer to display a table data i have a requirement where the user need to select the data from the report viewer and copy it to a work or a excel sheet .Is this possible to be supported?

Thanks,
Kiran
Steve
Telerik team
 answered on 30 May 2012
0 answers
110 views
Hi,

I need step by step procedure to create the CrossTab report.

Gunasekar
Top achievements
Rank 1
 asked on 30 May 2012
0 answers
251 views
Hi,

Iam creating Asp ReportViewer to display the Printable Forms.iam doing the customization part so i am saving the report

in my desktop.After modified the report i have to save the modified report in my database.
iam using the following code it saved the before changing .After save the report it does not update my database.

2.How to Create OpenFIleDialog dynamically in aspx.cs Page?

OpenFileDialog openFileDialog1 = new OpenFileDialog();
          if (openFileDialog1.ShowDialog() == true)
          {
              //openFileDialog1.InitialDirectory = "c:\\";
              openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
             // openFileDialog1.FilterIndex = 2;
              // openFileDialog1.RestoreDirectory = true;
             // myStream = openFileDialog1.File.OpenRead();
              //openFileDialog1.ShowDialog();
              System.IO.Stream myStream = openFileDialog1.File.OpenRead();
 
              using (System.IO.StreamReader reader = new System.IO.StreamReader(myStream))
              {
                  // Read the first line from the file and write it the textbox.
                  
                  tbResults.Text = reader.ReadLine();
              }
              myStream.Close();
          }
              
                BizFramework.Web.Model.PrintableLayout _printableLayout = new PrintableLayout();
              //  _printableLayout.PrintableLayoutID = 90;
                _printableLayout.DocumentName = "Invoice";
                _printableLayout.SerializedData = tbResults.Text;
                _printableLayout.CreatedBy = "BAOwner";
                _printableLayout.CreatedDateTime = System.DateTime.Now;
                _printableLayout.ModifiedBy = "BAOwner";
                _printableLayout.ModifiedDateTime = System.DateTime.Now;
                dcBusinessAccountingContext.PrintableLayouts.Add(_printableLayout);
                dcBusinessAccountingContext.SubmitChanges();
Parameswari
Top achievements
Rank 2
 asked on 30 May 2012
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?