Telerik Forums
Reporting Forum
1 answer
108 views
In our reports we are using some custom fonts. To have correct outlook of exported PDF we are embedding these fonts into PDF.
However some of our clients needs the functionality to edit these documents later without installed font on machine and with embedded fonts they are loosing signs of these fonts.
I know that some engines provide functionalities to convert font to outlines when exporitng to PDF. The question is, if Telerik Reporting can do that? If yes, can You provide any simple example?

Thanks in advance
Stef
Telerik team
 answered on 24 Jun 2013
1 answer
94 views

i have created a reportserver. This allows to display several independant reports in the browser.
The initial reportparameters are filled in with values from the url
but those parameters can be changed.
when i export the second render result (with different parameter values) to pdf in the code behind, it always saves the document with the initial report parameters.
when i use the export function from the reportviewer, it is correct

Dim succesful As Boolean = False

try

 Dim reportProcessor As New Processing.ReportProcessor()

 Dim instanceReportSource As New InstanceReportSource()

 instanceReportSource = ReportSelection(true)

 Dim result As Processing.RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo)

 Dim fileName As String '= result.DocumentName + "." + result.Extension

 Dim directoryPath As String = servername.MapPath("../docs/")

 

 Dim contextDirectory As New DirectoryInfo(directoryPath)

 If contextDirectory.Exists Then

 Else

 contextDirectory.Create()
end If

 Using fs As New System.IO.FileStream(directoryPath & fileName, System.IO.FileMode.Create)

 fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length)

 fs.Close()

 

end Using


any suggestions?

 

 

 

Stef
Telerik team
 answered on 24 Jun 2013
2 answers
87 views

Hello,

We are introducing the Chinese languages (Traditional and simplified) in our product. Everything went fine until we came to sorting. Chinese strings are not sorting as they are supposed to. This(these) language(s) has its(their) own 2 special sorting orders, as you probably know are: By phonetics(pronunciation) or by number of strokes.

We are using the Q3-2012 version of Telerik. Does this version support this types of sorting?

PS: I saw a similar question posted by a developer on july 2009, asking if the sorting for other language (example for Taiwan- traditional) is supported. The answer came from an admin called Steve:

Hi …,
Sorting of data in Telerik Reporting is done through the standard sorting mechanism in .NET.
Greetings,
Steve
the Telerik team

 

By .NET-mechanism he meant sorting via Unicode values I presume?

Is this still a fact even with Version Q3?

 

Regards

Elie

 

Stefan
Top achievements
Rank 1
 answered on 24 Jun 2013
1 answer
171 views
I'm using the Graph object in Q1 2013 (instead of the obsolete Chart).

I have a stacked bar chart with three values (slight, moderate, severe) and I'm using a custom color palette to control the colors. The colors match up like so:
  • Slight = Green
  • Moderate = Yellow
  • Severe = Red

However, if I exclude a value, say Slight, I get the following:
  • Moderate = Green
  • Severe = Yellow

But what I want is:
  • Moderate = Yellow
  • Severe = Red

How can I achieve that?

Ideas:
  1. I realize I can use DataPointConditionalFormatting to color the bars, BUT that doesn't change the legend markers. Can I change the legend colors programmatically?
  2. Can I modify the Color Palette programmatically? If so, could I remove a color in the collection to control the default bar and legend colors?

Thanks for any help!

Ken

UPDATE:

To get around the non-matching legend colors issue I did the following:
  1. Used conditional formatting to color the bars.
  2. Hid the default legend.
  3. Added my own static legend on the report below the chart.

That's not a bad solution, but I would still like an answer to my questions above.

Stef
Telerik team
 answered on 21 Jun 2013
6 answers
178 views
Hello there,

I am new to this Telerik reporting thing and I am taking over someone who was a developer at my company.

I was trying to install an old version of Telerik but the installer could not allow me, so i ended up installing the last version Q2 2013.

However, my solution (asp.net solution was build in VS 2010 using frame work .net 3.5) and now when I go trhough the telerik upgrade wizard, it would not allow to update my references until I switch my .net solution to .net frame work 4.0. What should I do ? If i try that I get lots of warnings, should I ignore those warnings ?

Thank you
Otto Neff
Top achievements
Rank 2
 answered on 21 Jun 2013
1 answer
103 views

Hi,

I am using parametrised Stored procedure to fetch data for report. In the report I have  added a parameter 
for this Stored procedure. But parameter value does not assigned properly,
It always send null values as a Parameter to the SP. 
Am I missing something to solve this problem?
(using Q2 2013 Version of Reporting)

Thanks in advance.
Ivan Hristov
Telerik team
 answered on 21 Jun 2013
1 answer
105 views

the following code gives a null reference exception object reference not set to the instance of an object.
I have also tried:
TelRpt.ReportParamenters["txtContract"].value = cheader.ContractNum;
gives the same error.
cheader.ContractNum has a value.
If I take out this line the report converst to docx with no problem excet the contract number does not appear.

((TelRptContract)TelRpt).ReportParameters["txtContract"].Value = cheader.ContractNum;
Ivan Hristov
Telerik team
 answered on 21 Jun 2013
1 answer
107 views
What is the comparable command for running a telerick report?

I have tried ReportName.run and it only has isinrunmode.  I need to run the report before i convert it to docx so that some of my text boxes populate.  Following is the code with rpt as a ActiveReport

rpt.DataSource = new Select()
                                    .From(EP_Main.ContractHeader.Schema)
                                    .Where("ContractID")
                                    .IsEqualTo(cheader.ContractID)
                                    .ExecuteDataSet().Tables[0].Copy();
                     
                    rpt.Run();
 
TelRpt.Run //This is the telerik report and only gives isinruntimemode
Peter
Telerik team
 answered on 21 Jun 2013
4 answers
147 views
Hi,

I've created a report for invoices with following layout:

 -----------------------------------------------------------------------------------------
 |     Invoice header shown on first page of invoice  (Report header)       |
 -----------------------------------------------------------------------------------------
 |     Invoice number and further info shown on every page                      |
 |     (Group header without any grouping)                                               |
 -----------------------------------------------------------------------------------------
 |    Invoice positions / detail data   (Detail section                                    |
 -----------------------------------------------------------------------------------------
 |    Summary shown once after details   (Report footer                           |
 -----------------------------------------------------------------------------------------
 |    Invoice footer shown on every page   (Page footer                           |
 -----------------------------------------------------------------------------------------

In interactive mode this layout works fine. If the invoice positions expand to second page the group header with the invoice number is displayed correctly.
But in print preview mode the page breaking differs from the layout. If invoice positions fit to one page and the summary in printed on second page the group header isn't printed anymore on second page (even with option "PrintOnEveryPage").

How can I get the group header on page 2?

Best regards
Rayko
IvanY
Telerik team
 answered on 21 Jun 2013
2 answers
142 views
Hi, 

I am trying to do Batch Printing which has different values at each PageHeader Section.

I'm using Telerik Reporting 2012 Q3 with RIA service and C#.
I successfully made a case of invoicing report with a number of set printing. AKA) Batch Printing.

Basically, the report has a PageHeader and detail. Detail has a group which is making grouping by "Field.CtPackSort"
In groupFooterSection, I set up PageBreak property as "After". These are making the report as a batch printing report.

Here is my question.
Can I get the values in the Page Header Section same as  of "Field.CtPackSort" value? 
Not needed to get entire PageHeaderChildrenElements,
all I want to do is binding different value of Field.CtPackSort at each Pages of PageHeaders.

I am well aware of PageHeader has only ONE value, and entire report repeat the same value.
I saw that there is a REPORT BOOK which set many different reports as a one report.

Thank you in advanced.

Sincerely,
Hyun Lim
H
Top achievements
Rank 1
 answered on 20 Jun 2013
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?