Telerik Forums
Reporting Forum
1 answer
187 views
Hi,

I am trying to conditionally skip code when in design mode, and normally use the following:

if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
               return;

However, when previewing reports hooked up to a temporary objectdatasource, this above code does not work.  Is there a way to determine if I am in report preview mode?  The reason I ask is that I want to bypass the _NeedDataSource event if I am in VS and previewing the report.

Thanks,
David A.
Stef
Telerik team
 answered on 04 Aug 2014
1 answer
77 views
Hello Everyone

I have a reporting service running on a server with cross-orgin enabled, and i am accessing the reports using report viewer on my client side.
This works well on following browsers (Firefox, Chrome , IE-Edge, IE-10) except on IE 9.

when i run it on IE 9 it gives me a script error

SCRIPT1014: Invalid character
File: telerikReportViewer-8.1.14.618.js, Line: 726, Column: 17

Is there something i am missing somewhere because i even tried different versions of ReportViewer but i still get the error.

Thanks In advance


KS
Top achievements
Rank 1
 answered on 04 Aug 2014
1 answer
119 views
I am trying to source a field from a Method instead of a Property on the Object, is there anyway to accomplish this?

public class MyObject()
{
   public PropertyA{get;set;}
   public string GetValue(string Name)
    { 
        return "XYZ";
    }
}

In my Dynamic Report I am trying to do something like:

rowTextBox.Value = "=GetValue(\"" + columns[i].Name +"\")";
dataTable.DataSource = new List<MyObject>();



But it doesn't appear to find and execute the method.  Any ideas?
Nasko
Telerik team
 answered on 04 Aug 2014
1 answer
67 views
Hello,

I'm used to using Crystal Reports and being able to have multiple sections for Group Headers. This allows me to show some of the group headers (the column headers for the details section on every page, and the description of the group only once.

I'm becoming more familiar with using panels, but I don't see a way in the conditional formatting on how to make a panel only print once in the group section while leaving the rest of the data to print on every page.

Any help would be greatly appreciated.

Philip Carter
Philip
Top achievements
Rank 1
 answered on 03 Aug 2014
1 answer
288 views
Is there a field property to have the resulting value be the empty string when an expression evaluates to NaN or Infinity?

I know how to work around this by using a string property that formats the value for me, but I was wondering if there was a code-less way.

Thanks
TechSavvySam
Top achievements
Rank 1
 answered on 01 Aug 2014
5 answers
579 views
I know I can control the page scaling of Exported PDFs using the "ViewerPrintScaling" rendering extension.  However, it appears this setting is ignored when using the Print button on the toolbar.  Instead, PDFs are always scaled.  It would be nice if PDFs always respected the rendering extension configuration (even when printing).  Or is there some other way that I can force printed PDFs to not scale?

Thanks,
-Stephen
Stef
Telerik team
 answered on 01 Aug 2014
1 answer
82 views
When viewing a report in IE 11, it produces an "access denied" error on line 493 of http://localhost:40311/Telerik.ReportViewer.axd?optype=Resource&version=8.1.14.618&name=Resources.ReportViewer.js

This works fine in Chrome.

When debugging, the error is due to paramsFrame.contentWindow, which is what throws the access is denied exception.

I believe this is a CORS issue, however I am running locally within visual studio 2010 using ASP.NET Development Server.
KS
Top achievements
Rank 1
 answered on 01 Aug 2014
3 answers
109 views
When the following line is included in the web.config, the export feature in the Html5 Report View fails for Chrome and Firefox.

<system.webServer>
     <modules runAllManagedModulesForAllRequests="true">
             <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
     </modules>
</system.webServer>

Please advise since we would like to keep the compression active on our site.
Konstantin Dikov
Telerik team
 answered on 01 Aug 2014
8 answers
1.9K+ views
Hi,

I want to use 'if' in value of textbox item.
 It's possible ?
Nasko
Telerik team
 answered on 01 Aug 2014
2 answers
238 views
Hello! 

I am attempting to create a custom user function as per: http://www.telerik.com/help/reporting/expressions-user-functions.html

I created my custom assembly, and was able to successfully get the new function to show up in the standalone Telerik Report Designer Expressions Window. 

However, I can't seem to get this same custom assembly to show up in the expressions window in the Visual Studio Report Designer for Telerik. I was not able to find the right search terms to find a solution to my issue anywhere. I'm sure there is something simple that I am missing to have the visual studio report designer load the custom assembly in the Expressions Window. Can anybody help me out? I've added a reference to the assembly DLL file in my project, and I've updated app.config as below:

<?xml version="1.0" encoding="utf-8" ?><br>
<
configuration><br>   
<
configSections><br>     
<
section<br>             
name="Telerik.Reporting"<
br>             
type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"<
br>              allowLocation="true"<br>             
allowDefinition="Everywhere"/><
br>   
</
configSections><br>  <br>  <br>   
<
connectionStrings><br>    my connection info in here! <br>    </connectionStrings><br><br

<
Telerik.Reporting><br>   
<
AssemblyReferences><br>     
<
add name="CustomAssembly"/><br>   
</
AssemblyReferences><br
</
Telerik.Reporting> <br>  
<
br></configuration>

Any guidance that could be offered would be greatly appreciated as I have exhausted everything I can think of. 

 I am using Telerik 2014 Q1 and Visual Studio 2010. 

Thank you! 

Keith
Top achievements
Rank 1
 answered on 31 Jul 2014
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?