Telerik Forums
Reporting Forum
1 answer
150 views
Hi..
 This is suriya after a long time i am asking a quest..


this time i need to display the amount in the indian format, but by default the amount is always displaying in the international format..

i.e.,   instead of 1,00,00,00,00,000.00 this i having the amount 100,000,000,000.00..


i want to display the amount in indian format..... plz reply as sson as possible.....


Thank you

S Suriya Narayanan
Steve
Telerik team
 answered on 15 Jun 2009
1 answer
72 views
Exporting generated reports into MHTML are possible but can they be imported into RadEdit, via Template Manager, to make changes?  The reporting tool collects all the information for presentation, however, these reports represent just the data component.  We would like a user to compose an explanation of the data within RadEdit and then append the actual report, much like they do today using MS Excel to create the reports and MS Word to write the reports.
Steve
Telerik team
 answered on 15 Jun 2009
2 answers
101 views
Hi Telerik,

I have a report in A4 paper size (I can't set it bigger because the client only want to print reports in A4 size). In report, I design the report header and page header with the same content because I want it repeated on each page. And the content in thoses sections  (include detail section) is always longer than A4's width so they are stretched to several pages when printed. That behaviour is ok. I suppose it to be this. But the problem here is page header isn't like this. I have no way to show reporting engine to stretch page header to several pages. The page header only shows a part of content and strips the rest.

I would like to ask whehter there is any way to let content in page header span over to several pages like detail section or report section does. I notice that there are two different classes for section: Telerik.Reporting.ReportSection and Telerik.Reporting.PageSection. Does the ReportSection class has ability to stretch its content while PageSection can't ?

The version I'm using is Telerik Reporting 2008 Q1.
Thank.
Duy
Top achievements
Rank 1
 answered on 12 Jun 2009
2 answers
210 views
We are currently exporting a report to PDF format , our report uses a combination of graphic and text elements.
We use raw printing code to automate the printing of the documents and when raw printing only get the graphical layer.

When printing from a pdf viewer like acrobat , then the document prints perfectly.

It seems that the pdf like many pdf's , the document is still in multiple layers .
In order to get it printing as a single layer , we need to be able to export the pdf in an already
flattened format or flatten it post export.

Does Telerik reporting provide a method by which this can be done ?
Kenneth Jackson
Top achievements
Rank 1
 answered on 12 Jun 2009
1 answer
241 views
Hello
when I export a report to pdf  , It automatically  shows page in  133% zoom rather than 100% one .
Can we change this kind of pre-settings of PDF rendering.
Also when it converts images of a reprort (such as charts ,banners ) into pdf ,images loose some resolution ,looks a bit blurred .Is there a way of handling  this problem ?

Thanks in advance.
Steve
Telerik team
 answered on 12 Jun 2009
1 answer
283 views

Can we create global objects so that we can reuse the variables in two or more subreports just like PageNumber or PageHeader.

 

Any help would be appreciated. Thanks

Steve
Telerik team
 answered on 12 Jun 2009
1 answer
178 views
Hi Telerik Team!

We have a method which exports a report to pdf file.

The problem is that generated file size is ~1MB (it's a simple PDF with logo and 3 or 4 text lines).

I read other post in this Forums and i see an answer about FontEmbedding but i can't configure this in my application.

My version of Telerik Reporting is Q2 2007 SP1 in a local application in C# 2.0

This is my method:

    Hashtable deviceInfo = new Hashtable();
            deviceInfo["FontEmbedding"] = "None";
            deviceInfo["DocumentAuthor"] = "Businet"; 

            byte[] reportBytes = Telerik.Reporting.Processing.ReportProcessor.Render(exportFormat, report, deviceInfo, out mimeType, out extension, out encoding);
            reportName += "." + extension;

            using (FileStream fs = new FileStream(reportsLocation + reportName, FileMode.Create))
            {
                fs.Write(reportBytes, 0, reportBytes.Length);
            }

I think that deviceInfo is not applied because the generated file not have "Author" property.

Thanks for advance.
Steve
Telerik team
 answered on 12 Jun 2009
1 answer
98 views
Scenario:

I have a report.  When it is run it only displays records with a boolean flag != 1.  After it runs, it needs to flip the flag to 1 so it won't show again.


Attempted solutions:

  1. Make the report window modal, and when it is closed, update the database setting the flag to 1 for all records in the report.  This worked perfectly except users on terminal services would leave the report open, get timed out, records don't get updated, they have to reopen/reprint the report to fix it.
  2. Make the VB form that contains the report set the flags in the OnPreRender, this happens too soon and the data is not there when the report is displayed.  Tried OnPreRenderComplete as well.  Also tried the reportviewer object's prerender... all of these happened too early.
  3. Add the updating code to the select query, so that we get the records we need and THEN immediately update the boolean flag.  This I feel is the proper solution unless there is a better one I've not thought of yet; however when the print dialog is displayed, evidently it makes another trip to the database and runs the stored proc again... therefore the printed report is blank.  I feel this is either just the default behavior or it's because I'm using the NeedsDataSource event to run the storedproc/fill the data set.

Request:

So my question would be simply is there any way in the report obj or in the typed dataset it pulls from, to cache the data and make sure the results in the preview/print window match the initial html preview?  If not, is there a way to make it not render the html preview at all and instead have the first request for data be the print dialog?
Steve
Telerik team
 answered on 12 Jun 2009
3 answers
197 views
Hello everybody,

I'm wondering if Is there anyone who can help me with this one.

Basically, I have a report organized as follows:

- Page Header section;
- Report Header Section
- Detail section (empty);
- Report Footer Section;

In the Page Header, I have a fixed size header, with several fields and static info;
In the Report Header I have a crosstab containing dynamic info coming from DataBase;
In the detail, I have nothing.
In the Report Footer (or Page Footer, I still don't know), I'll have info identical to the one on the Page Header.

What Im trying to accomplish is to make sure that my crosstab is always of thew same width as the shape delimiting the info on the Page Header.

I've tried almost every event of the Report to no avail... How can I make this thing work?

Thanks!
Stargazer
Top achievements
Rank 2
 answered on 12 Jun 2009
1 answer
122 views
Hi. I am currently experimenting (newbie) with Telerik reports in VS 2008. I have programmatically bound a SQLAdapter object to a datasource of a Telerik report. The next question becomes how do I display the data on the report now. Do I need to somehow programmatically tap into the datasource and create the detail fields.? When I go to preview the report in the Report Design of Visual Studio iget an error that says "Exception has been thrown by target of invocation. Object reference not set to an instance of an object" . The end goal here is to display this in a web report viewer on an .aspx page but I am pretty sure i need to get the report itself working first. Any direction one could provide would be greatly appreciated. Below is my code to bind the report datasource just as a reference. The report currently does infact build. Any help would be greatly appreciated.

--Jason

 

public Report1()

 

{

 

/// <summary>

 

 

/// Required for telerik Reporting designer support

 

 

/// </summary>

 

InitializeComponent();

 

 

SqlConnection connSomsys = new SqlConnection(ConfigurationManager.ConnectionStrings["connSomsys"].ConnectionString);

 

 

SqlCommand sqlSelectCommand1;

 

 

sqlSelectCommand1 =

new SqlCommand("sprocgetorders", connSomsys);

 

sqlSelectCommand1.CommandType =

CommandType.StoredProcedure;

 

 

SqlDataAdapter adap = new SqlDataAdapter(sqlSelectCommand1);

 

 

this.DataSource = adap;

 

 

//

 

 

// TODO: Add any constructor code after InitializeComponent call

 

 

//

 

}

Hrisi
Telerik team
 answered on 12 Jun 2009
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?