Telerik Forums
Reporting Forum
4 answers
80 views
I have built and deployed the reporting app to the local IIS 7 using the File System method. I have launched and tested the web site and the reporting and all works well.

When I FTP the site to a public server (Arvixe) I get a runtime error. Both the reporting DLLs have been deployed and the web site files and structure are identical. I suspect it may be in the web config which is minimal. Do you have any suggestions
<configuration>    
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
    </system.web>
     
    <connectionStrings>
        <add name="COTSDev"
                connectionString="Data Source=csd2011;Initial Catalog=DB;Integrated Security=SSPI"
                providerName="System.Data.SqlClient" />
        <add name="COTSProd"
                connectionString="Data Source=arvixe.com;Initial Catalog=DB;Persist Security Info=True;User ID=CSDApp1;Password=PWD"
                providerName="System.Data.SqlClient" />
    </connectionStrings>
     
    <system.serviceModel>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
        <services>
            <service name="CSharp.SilverlightDemo.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>
Mark
Top achievements
Rank 1
 answered on 06 Jul 2013
1 answer
33 views
Hello,
  
I am trying to show text value uniquely while overlapping on another text, by setting it's background color white.
  
m_PageTitle.Style.BackgroundColor = Color.White;
  
But even afer setting background color, both text values are displayed overlapping each other. Instead it should hide overlapping part of another text.
  
Please help.
  
Regards,
Manish
Stef
Telerik team
 answered on 05 Jul 2013
3 answers
239 views
hi Telerik Team,
 

 

I m using telerik report version 5.0.11.510

 

Browser: Chrome
When i click on print button it gives me error
Unable to perform print operation
i also try to enable adobe plugin
but it did not work
It prints well in firefox but my clients are using chrome so i want its solution in chrome
but i want that it should print directly by pressing on print button

please give me reply its very urgent

thanks in advance
Stef
Telerik team
 answered on 05 Jul 2013
2 answers
94 views
I just upgraded to the Q2 2013 DLLs for reporting and find that the Telerik.Reporting.Report.ReportParameters Value property is not updated when the user changes an input parameter manually, always retaining its original value, whether blank or defaulted programmatically, This worked just fine before the upgrade, but has now broken all my reports.

Is this an actual bug or was there some change I need to make since upgrading to fix this problem? 
Thanks.
Stef
Telerik team
 answered on 05 Jul 2013
3 answers
119 views
6 answers
348 views
I am using Telerik Reporting for just printing in my windows service but what happen is that its showing a dialog box for printing and I am getting an exception. I have already defined a default printer name by my function. Any help would be greatly appreciated.

Exception :

Service cannot be started. System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

 System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();
            printerSettings.PrinterName = GetDefaultPrinter();
            Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
            System.Drawing.Printing.StandardPrintController standardPrintController = new System.Drawing.Printing.StandardPrintController();
            Telerik.Reporting.Report rpt = new Telerik.Reporting.Report();            
            reportProcessor.PrintController = standardPrintController;
            reportProcessor.PrintReport(rpt, printerSettings); 



public string GetDefaultPrinter()
        {
            System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();
            foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
            {
                printerSettings.PrinterName = printer;
                if (printerSettings.IsDefaultPrinter)
                {
                    return printerSettings.PrinterName;
                    //return printer;
                }
            }
            return string.Empty;
        }
Stef
Telerik team
 answered on 05 Jul 2013
9 answers
781 views
Hi,

I am trying to Print directly without any printer window.

I am using the following code:
-------------------------------------------------------------------------------------------------------------------
                     'Instance the report with all the information already populated
                    Dim IdCardReportToPrint As New IdCardReport

                    'Set the Printer Setting
                    Dim CustomPrinterSettings As New System.Drawing.Printing.PrinterSettings
                    CustomPrinterSettings.PrinterName = "IDCardPrinter" '

                   'Print Directly
                    Dim ReportPrint As New Telerik.Reporting.Processing.ReportProcessor
                    ReportPrint.PrintReport(IdCardReportToPrint , CustomPrinterSettings)
-------------------------------------------------------------------------------------------------------------------

It worked fine in the developer machine, it prints directly without any windows. Ones we deployed in the web server we are getting the following error:

ERROR ***********************************

08/27/2009 14:00:06
Type : System.InvalidOperationException
Message : Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Source : System.Windows.Forms

END ERROR****************************************

I think what is happening is when we send to print it try to print in the server. Does this function print in the local machine or in the server?

We also use this article to print but it show the printers windows of the explorer and we dont want it. Any ideas?

Best Regards.


Stef
Telerik team
 answered on 05 Jul 2013
4 answers
71 views
Hello,

I just made a simple report which use a report.parameter to select some data.
The parameter is filled through a DataSouce with a Name and a Id field.
When i switch to preview the parameter box is filled and i can select a name from it.
Then clicking the Preview button a empty report is shown.
The value of the parameter is not passed or, when a extract the value from the parameter.value there is nothing.
I do this in the NeedDataSource Event before building the query.

Dim Id As String = Report.ReportParameters("Parameter1").Value.ToString

This worked before in older reports but now, whatever i try there is no value.
Is something changed??

I'm glad if somebody can help me before i spent a lot of time on something changed or a bug.

Regards,

Ferry



Stef
Telerik team
 answered on 05 Jul 2013
1 answer
47 views
Hi

We need to plot to two different kind of chart series (Line and Point) on a single report. We are able to achieve it when we don't any grouping but unable to plot correctly when grouping is involved. Please refer the attached snapshot. This is the expected format with grouping.

Data structure:
EmployeeName = "Peter Jackson" , Date = Date 1, MinValue= "60%", MaxValue = "80%" , Average = "70%"
EmployeeName = "Peter Jackson" , Date = Date 2, MinValue= "65%", MaxValue = "90%" , Average = "80%"
EmployeeName = "Peter Jackson" , Date = Date 3, MinValue= "70%", MaxValue = "100%" , Average = "90%"
 
 
EmployeeName = "Denis Regan" , Date = Date 1, MinValue= "66%", MaxValue = "86%" , Average = "72%"
EmployeeName = "Denis Regan" , Date = Date 2, MinValue= "68%", MaxValue = "92%" , Average = "85%"
EmployeeName = "Denis Regan" , Date = Date 3, MinValue= "78%", MaxValue = "100%" , Average = "90%"
  
We need to group by EmployeeName on X axis. 
Line Series Data : MinValue and MaxValue
Point Series Data : Average

Please let me know how to achieve this? It would be grateful if you could provide any code samples.

Thanks in advance
Sankar
Stef
Telerik team
 answered on 05 Jul 2013
1 answer
140 views
Hi

We need to create a scatter type of chart as attached here. Could you please let us know how to achieve scatter series by using (Chart Class) Q2 2012 version? 

As per the attached snapshot, we have only one data point for X axis and more data points for Y axis(100s, 1000s, etc..) under one group ( eg: Peter Jackson or Date 1). In this case, how do we arrive selective data points out of 100s, 1000s data points which will be considered as final scatter data points in Y axis?

We don't have any issues for creating Bar Series but have concerns on how to select the final scatter data points out of maximum data points and spread over exactly on Bar Series under one particular group.

If you could provide a sample to fulfill this requirement, it would be great helpful to us. Looking forward your response.

Thanks
Sankar
Stef
Telerik team
 answered on 05 Jul 2013
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?