Telerik Forums
Reporting Forum
2 answers
171 views
I am using the custom report service so I can pass in the file name of the trdx - this works perfectly in development and deployed to localhost. However when I deploy to the hosted server (Arvixe) the service is not available.

I have tested this by trying to access ReportService.svc directlyfrom the browser with Fiddler active and I get no response. Accessing the local hosted version works as per expected.

The site hosts a normal WCF service so it is configured to support services. The url is http://www.reefrescue.critsoft.net/ReportService.svc

This is the webconfig
<configuration>
    <system.web>
        <compilation debug="false"
                                 targetFramework="4.0" />
        <authentication mode="Windows"/>       
    <customErrors mode="On" defaultRedirect="GenericErrorPage.aspx">
        <!--<error statusCode="404" redirect="Http404ErrorPage.aspx"/>-->
    </customErrors>
    </system.web>
    <connectionStrings>
        <add name="COTSDev" connectionString="Data Source=csd2011;Initial Catalog=COTS;Persist Security Info=True;User ID=CSDApp1;Password=" providerName="System.Data.SqlClient"/>
        <add name="COTSProd" connectionString="Data Source=rosebloom.arvixe.com;Initial Catalog=COTS;Persist Security Info=True;User ID=CSDApp1;Password=" providerName="System.Data.SqlClient"/>
    </connectionStrings>
     
    <system.serviceModel>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
        <services>
            <service name="Cots.Web.CustomReportService"
                             behaviorConfiguration="ReportServiceBehavior">
                <endpoint address=""
                                    binding="basicHttpBinding"
                                    contract="Telerik.Reporting.Service.IReportService">
                    <!--<identity>
            <dns value="localhost"/>
          </identity>-->
                </endpoint>
                <endpoint address="resources"
                                    binding="webHttpBinding"
                                    behaviorConfiguration="WebBehavior"
                                    contract="Telerik.Reporting.Service.IResourceService"/>
                 
                <endpoint address="mex"
                                    binding="mexHttpBinding"
                                    contract="IMetadataExchange"/>
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
                <behavior name="ReportServiceBehavior">
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug includeExceptionDetailInFaults="false"/>
                </behavior>
            </serviceBehaviors>
            <endpointBehaviors>
                <behavior name="WebBehavior">
                    <webHttp/>
                </behavior>
            </endpointBehaviors>
        </behaviors>
    </system.serviceModel>
</configuration>

Header of ReportService.svc
<%@ServiceHost Service="Cots.Web.CustomReportService, Cots.Web" %>

CustomeReportService.cs
namespace Cots.Web
{
    using Telerik.Reporting.Service;
    using Telerik.Reporting;
    using System.IO;
 
    public class CustomReportService : ReportService
    {
        //
        static readonly IReportResolver resolvers = new CustomReportResolverWithFallBack(
                                                                                                        new ReportTypeResolver(
                                                                                                                new ReportFileResolver(
                                                                                                                 new ReportFileResolverWeb(null))));
        public CustomReportService()
        {
            this.ReportResolver = resolvers;
        }
    }
 
    class CustomReportResolverWithFallBack : IReportResolver
    {
        readonly IReportResolver parentResolver;
 
        public CustomReportResolverWithFallBack(IReportResolver parentResolver)
        {
            this.parentResolver = parentResolver;
        }
 
        public ReportSource Resolve(string report)
        {
            FileInfo oFI = new FileInfo(report);
 
            ReportSource reportDocument = this.CustomReportResolver(report);
 
            if (null == reportDocument
                 && null != this.parentResolver)
            {
                reportDocument = this.parentResolver.Resolve(report);
            }
 
            return reportDocument;
        }
 
        public ReportSource CustomReportResolver(string report)
        {
            //TODO implement custom report resolving mechanism
            return null;
        }
    }
}

Short of uploading the entire project I don't know what else to do!



Mark
Top achievements
Rank 1
 answered on 25 Jul 2013
1 answer
80 views
I am looking for some one who is expert in telerik reports. I have 25-30 reports that needs to be done. Need is immediate. Your location doesn't matter as long as you can work few hours during PST. 
Tim
Top achievements
Rank 1
 answered on 24 Jul 2013
1 answer
120 views
I am using the latest Q2 2013 release. I am using the Visual Studio report builder.

I have a report that has 3 tables. They're each bound to the same object data source. Each of the three tables is reporting on the same data but in a slightly different way. The problem I have is that the object data source select method is called once per table. This is a problem because the select method is grabbing a RANDOM subset of the available data (the randomness has to exist for proper government reporting requirements). Since the method is called three times, I am getting three different sets of random data. That doesn't work. What I need is the method to be called ONCE and all three tables to reference that set of data. Is there some way I can accomplish this?

Thanks
Kyle Smith
Top achievements
Rank 1
 answered on 24 Jul 2013
1 answer
128 views
Do you have an infinite scroll or continuous scroll for the report viewer? Thus as you scroll it goes to the next page rather than having to hit the next button? 
Peter
Telerik team
 answered on 24 Jul 2013
1 answer
198 views
I have a report where I am using a crosstab in the report header section to display summary test data for all "sites"  My crosstab has 1 row group and 3 nested Column groups (Category, Testtype, Sitegrp).  The testtype field has a toggle visibility action that will display the site group columns when expanded.  Everything works as planned in the report header section.

When I try to duplicate this same table in the site group header section and add a filter to the new crosstab's sitegrp2 to restrict the site group columns to just the site in the group instead of displaying all sites, I have problems. 

When I use the following expression to filter the sight group in the second crosstab, the toggle will not work.  It will display correctly if I have no toggle and have everything visible. 

=Fields.site = =ReportItem.Parent.DataObject.site


The toggle WILL work in the group header crosstab if I hard code the filter. Which is a problem, since it shows the one site's data for each site.

=Fields.site = ='Mysite'


If the page refreshes, the crrosstab in the group header section no longer displays the sitegrp2 columns for either scenario, even though I have the visibility property set to True.

Is this a bug or am I doing somthing wrong.

-Jennifer
Stef
Telerik team
 answered on 24 Jul 2013
1 answer
251 views
In another thread, I read that connecting to Excel as a datasource would be available as of Q3 2012.  I cannot find documentation on how to do this.  Can someone please tell me how to connect to an excel spreadsheet datasource using the stand alone report designer?

Thanks,
Jennifer
Squall
Top achievements
Rank 1
 answered on 24 Jul 2013
4 answers
300 views
Hi,

The Telerik reporting designer keeps crashing when I made a change to a report and execute a preview action. 

Also, when it doesn't crash it jumps back to the designer after it generated the report. I don't know why. Clicking the preview tab again then finally shows the report.

Regarding the crash I have the following information:

Exception: {"Cannot access a disposed object.\r\nObject name: 'AdornerWindowCtrl'."}
Stacktrace:    at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at Telerik.Reporting.Design.Behavior.SelectionManager.Refresh()
   at Telerik.Reporting.Design.GraphDesigner.OnProcessItemCompleted()
   at Telerik.Reporting.Design.GraphDesigner.ProcessItem()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

What am I doing wrong?
Patrick
Top achievements
Rank 1
 answered on 24 Jul 2013
2 answers
270 views
Does Telerik reports support displaying recursive data with the latest release? As supported by Microsoft Report Service and Active Report.

In case it support I will prefer to go with telerik.

For example there is table with following structure
Employee_Table
Employee varchar2(10),
Report_to varchar2(10)

Data in Employee_Table
Employe;Report_TO
Employee1:Null
Employee1.1:Emloyee1
Employee1.1.2:Employee1.1
Employee1.1.2.1:Employee1.1.2
Employee1.1.3:Employee1.1
Employee2:Null
Employee2.1:Emloyee2

Report will display data in following format
Employee1
Employee1.1
Employee1.1.2
Employee1.1.2.1
Employee1.1.3
Employee2
Employee2.1





Peter
Telerik team
 answered on 24 Jul 2013
3 answers
130 views
I'm using the report viewer q1 2013 build 7.0.13.412 and I'm setting UseNativePrinting=true.
On a 15 page report 1 machine at a customer site is 50 times larger (size the printer sees) than the other machine.
the smaller size machine has adobe PDF while the large size one has Nuance PDF and no adobe installed.  Since UseNativePrinting=true, this should make a difference though right?

It should automatically do vector printing right?
The printers are different, should that make a difference?  The other machine is on a VDI system, so maybe it doesn't tell the silverlight program that it has vector printing.

Can I force vector printing with the report viewer?  Because silverlight will default to bitmap if it doesn't see the drivers.
Peter
Telerik team
 answered on 24 Jul 2013
5 answers
191 views
Hi Guys,

I have a C# project with a class with this method:
class Program
 {
        static void Main()
        {
            Service1Client client = new Service1Client();
            var data = client.GetGraphData(5, 150, 10, "Goodbye", "Hello");

            client.Close();
        }
 }

data is two columns with a bunch of numbers. 

Then I have a web application with a webform and a report viewer. I want a report that utilizes that data variable. How would I accomplish this?
Stef
Telerik team
 answered on 23 Jul 2013
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?