Telerik Forums
Reporting Forum
1 answer
917 views

Hi All,

Please I have been trying to export a standalone report in .trdp to pdf using the code below. but cant make any head away expecially with this line

       typeReportSource.TypeName = "ReportName";.

Any help or assistance.

Thanks

                    Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();

                    // set any deviceInfo settings if necessary
                    System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();

                  Telerik.Reporting.TypeReportSource typeReportSource = new Telerik.Reporting.TypeReportSource();

                    // reportName is the Assembly Qualified Name of the report

                    typeReportSource.TypeName = "ReportName";


                    Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);

                    string fileName = result.DocumentName + "." + result.Extension;
                    string path = System.IO.Path.GetTempPath();
                    string filePath = System.IO.Path.Combine(path, fileName);

                    using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
                    {
                        fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
                    }

Travis
Top achievements
Rank 1
 answered on 21 May 2018
1 answer
308 views

Hello,

I am attempting to convert some Crystal Reports XI vs 11.5.12.1838 to Telerik Report Designer 9.2.15.1216.  I have followed the steps to use the import wizard, and no converters are available.

I have followed the setups in the Progress Telerik Reporting documentation ( https://docs.telerik.com/reporting/faq-available-converters) to add an assembly binding redirect to no avail. 

I have also looked at the FUSLUGVW.exe  Assembly Binding Log viewer, and have attached the error.

The version of Telerik Report Designer I have is the only one issued for the current software that uses the reports, and I cannot go higher or lower. 

I have attached all the screen shots of some of my settings and logs.

Please let me know what I am doing wrong

Katia
Telerik team
 answered on 21 May 2018
2 answers
230 views
I’m using a ReportBook to display 2 different reports.  Both reports can also run independently from the other.  The second report is a recap of the first report, which means the data for the second report relies on the same data generated for the first report.

The ObjectDataSource.DataSource of both reports are assigned the same Type ( typeof(MyDataObject) ), but they are assigned different DataMembers.  MyFirstReport calls MyDataObject.GetRecords() and MySecondReport calls MyDataObject.GetRecapRecords().

When they are run together in the ReportBook, both reports are creating a unique instance of MyDataObject.  In other words, there are two instances of MyDataObject created.  Since both reports use the same DataSource Type, is there any way for both reports to share only one instance of MyDataObject when they are run from the ReportBook?
Todor
Telerik team
 answered on 18 May 2018
4 answers
1.2K+ views
I must be missing something...  I create a web project and add my Telerik class library and set a breakpoint on my Telerik test report contructor.  I run my project and can debug as normal but it never steps into the report. 

Is there documentation on this somewhere or am I just missing something?


R
Naveena
Top achievements
Rank 1
 answered on 18 May 2018
5 answers
235 views
Problema de desfazamiento del reporte cuando mandas a Imprimir con Windows 7 a 64 Bits
como lo podría corregir me imprime las barras de scroll del report Viewer
Gabriel
Top achievements
Rank 1
 answered on 17 May 2018
1 answer
684 views
My current report viewer has a parameter area which is vertically aligned but the one I want to implement it horizontally..
So how can we customize this area or is there any other way to implement it in the horizontal way?

I have attached the current parameter area image and my required parameter area image below....
Silviya
Telerik team
 answered on 17 May 2018
5 answers
283 views
I am currently working on Telerik Reporting with localization.i am new to telerik reports.please Can any one help me how to localize telerik reports to display in the language of a specific culture in my MVC application. For example, our report may display in both English and malay.i refered this link localizing reports in my mvc application.but i can't get exact info how to implement these concept in my aplication.
Naveena
Top achievements
Rank 1
 answered on 17 May 2018
2 answers
616 views
Hello,

I want to use resource files in my reports. I found the way that has to be done w.r.t. the culture-identification, and that is quite simple.
My problem however is that I don't know where to put the files. I found some C# code that will allow me to access a resource file but that does not work as I don't know where I have to tell it where the resourcefiles are. That code is:

public static string ReadResourceValue(string file, string key)
        {
            //value for our return value
            string resourceValue = string.Empty;
            try
            {
                // specify your resource file name
                string resourceFile = file;
                // get the path of your file
               // string filePath = System.AppDomain.CurrentDomain.BaseDirectory.ToString();
                string filePath = "";
                // create a resource manager for reading from
                //the resx file
                ResourceManager resourceManager = ResourceManager.CreateFileBasedResourceManager(resourceFile, filePath, null);
                // retrieve the value of the specified key
                resourceValue = resourceManager.GetString(key);
            }
            catch (Exception ex)
            {
                resourceValue = string.Empty;
            }
            return resourceValue;
        }

Is there a simple (simpler) way to do this?

Thank you
deepak
Top achievements
Rank 1
 answered on 17 May 2018
0 answers
107 views

want to use Korean.

 But There are cracks when export it to pdf.

I think its cause about fonts or encoding problem,
Is there any way make it works?
-I changed the font to Arial Unicode MS, already
Thanks.

yeonha
Top achievements
Rank 1
 asked on 16 May 2018
0 answers
166 views

Hi,

What would be the best approach to create the Master-Details table in Telerik report? The requirements are very basic:

row has two columns: description and price

Details table has only one column: name

The details table is optional, meaning not every master row has it.

The backing data source will be an Object from my model

An example of what I need is given in the attached image

Thanks,

Bojan

Bojan
Top achievements
Rank 1
 asked on 15 May 2018
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?