Telerik Forums
Reporting Forum
0 answers
135 views
Hi,

I worte  printing a report programmatically.this is my code
 var report = new TelerikComponentsWS.Reports.RepFeeReceipt(); 
                report.DataSource = printdata; 
                Telerik.Reporting.Drawing.ExternalStyleSheet exx = new Telerik.Reporting.Drawing.ExternalStyleSheet("~\\css\\ReprotStyleSheet.xml"); 
                report.ExternalStyleSheets.Add(exx); 
                report.ReportParameters[0].Value = strTitle; 
                Telerik.Reporting.IReportDocument reportDocument = report; 
                System.Drawing.Printing.PrinterSettings printerSettings 
                                 
                    = new System.Drawing.Printing.PrinterSettings(); 
 
                // The standard print controller comes with no UI 
                System.Drawing.Printing.PrintController standardPrintController = 
                    new System.Drawing.Printing.StandardPrintController(); 
 
                // Print the report using the custom print controller 
                Telerik.Reporting.Processing.ReportProcessor reportProcessor 
                    = new Telerik.Reporting.Processing.ReportProcessor(); 
 
                reportProcessor.PrintController = standardPrintController; 
 
                reportProcessor.PrintReport(report, printerSettings); 

It's working fine .it's printing report but it's Not working on server printing not working  .it's working only my system .How to solve this problem 
shanker bangari
Top achievements
Rank 1
 asked on 24 Jun 2010
1 answer
187 views
Hi,
I'm using Telerik Report(4.0.10.423), I found out that some of my textbox horizontally expand because of text-length, so I set TextWrap and Multiline property to True, but It doesn't work on browser, however when I export it to pdf file, It work.  

please see the attach files.

Thank you


Pat
Top achievements
Rank 1
 answered on 24 Jun 2010
2 answers
119 views
Hi,

I have a report that has three distinct subreport sections that can be turned on and off.  I did create them as subreports but then because of the positioning on the resultant report and the fact that there is no "page break before" functionality for items within the detail section I want to add them in as a report book.

I've tried adding a report book to the detail section of a report but have had no success.  The examples on the site are more about selling the product than teaching about it and the help guide doesn't really do much more than show you how to use the ReportViewer with a report book.

How do I go about solving my issue? Essentially I want to add the report book that I've setup (and it works) to the DetailSection...

Also will the help/knowledge base type stuff be sorted out anytime soon.  This is an increasing fustration of mine across the Telerik range in that a couple of years ago it seems that everything was about examples, documentation etc.  Now we are lucky to have a sniff of good relevant non sales examples on the site.  I'm sure that I'm not the only one that has noticed this trend.  Doubly worrying for me as the reason that I use Telerik and not DevExpress is that the online help was (not the past tense) better with Telerik.  I am not by the way knocking the forum based support as that's pretty good but so many times I see repeat question after repeat question which could be removed by better help guides.   Forget about focussing on selling the product and start providing the support guides - also please stop this massive move to Silverlight and provide some new useful stuff for the (I'm sure vast) majority of us that still live in the dark ages using ASP.Net and Winforms - otherwise we may start looking elsewhere...

Regards,

Jon

Jon
Top achievements
Rank 1
 answered on 23 Jun 2010
0 answers
117 views
We are trying to show a hierarchical report with up to six levels of depth. However, we've been requested to allow the hierarchy to be shown in multiple pages if necessary. All this works all right, but, aditionally, we've been asqued to show the last element from the hierarchy shown in the previous page, if it is being showed in multiple pages. That's were the problem lies, since we haven't been able to figure out how to do this.

i.e.:

The hierarchy to be shown is:

Element 1
     ----- Element 1.1
          ----- Element 1.1.1
               ----- Element 1.1.1.1
               ----- Element 1.1.1.2
                    ----- Element 1.1.1.2.1
                                            <-------------------- Page break goes here
    ----- Element 1.2
          ----- Element 1.2.1
               ----- Element 1.2.1.1
     ----- Element 1.3
          ----- Element 1.3.1

Element 2
     ----- Element 2.1

    
We've been asked to remember the value of Element 1.1.1.2.1 (the value is stored in a textbox) so that when the next Page renders, before listing Element 1.2, it prints that the last shown element was Element 1.1.1.2.1

I hope someone can suggest a solution.

Thanks and best regards to everyone
Ernesto Cuevas
Top achievements
Rank 1
 asked on 23 Jun 2010
4 answers
129 views
Hi..
My reporting works fine from SL on my dev machine.. but when I deploy I get the following message. Any ideas ? thanks again.. what am I missing?

The type 'Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=4.0.10.423, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.
Jon
Top achievements
Rank 1
 answered on 23 Jun 2010
4 answers
153 views
Version: Q3 2009
Visual Studio 2005 + windows 7

I have a report viewer1 in a form.  I load a report to the report viewer.  The subLoadReportHeader is just to load heading from a database. eg Report Title, etc.
Dim myReport1 As New someReport  
myReport1.oTable = oTable  
myReport1.subLoadReportHeader()  
Me.ReportViewer1.Report = myReport1  
 
 
 

In the someReport, I use NeedDataSource to bind the data.


Private Sub someReport_NeedDataSource(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.NeedDataSource  
        Me.DataSource = oTable  
End Sub 

So the report can only display with the heading but not the details.  I need to click the refresh button in the report viewer to refresh so as to display the details.

What is wrong?  Thanks.
Steve
Telerik team
 answered on 22 Jun 2010
1 answer
89 views
Assume my data looks like this:
cat 1       cat 2        value
1            1                2
1            1                3
1            2                1
1            2                2
1            2                3
1            2                4
2            1                1


I'd like my report to look something like:
cat 1: 1
    cat 2: 1
        2,3

    cat 2: 2
        1,2,3,4

cat 1: 2
    cat 2: 1
        1

The issue I'm having is trying to get the last line to work in a windows application. From what I can understand, these records would have to be on separate lines.  I'd like to append all of them for a cat1, cat2 grouping.

Can I do this with the reporting engine or will I have to do some trickery behind the scenes in my business logic?

I hope I've explained this adequately enough for you to understand my question.

Thanks!
Steve
Telerik team
 answered on 22 Jun 2010
1 answer
65 views
Hi,

  I'm specifying the bar width and colors to series programatically. 

chartseries.Type = Telerik.Reporting.Charting.ChartSeriesType.StackedBar;  
chartseries.Appearance.BarWidthPercent = 15;  
chartseries.Items[j].Label.Visible = false;  
chartseries.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(57, 19, 232); 

For StackedBar chart, i don't see the impact. The Bar width is still auto eventhough i set it to 15%. The bar becomes multiple color when i specify the color.
When i apply the same to a Bar chart, the width is set to 15% and the color is applied. Why does it not apply to StackedBar? Whether the properties which needs to set is different for StackedBar?

In StackedBar, how can i show the total of item values above the bar? similarly on DataTable how to show the total?

Thanks.
Peter
Telerik team
 answered on 22 Jun 2010
1 answer
94 views
Hello!

I am evaluating the usage of Telerik Reporting Service along with our Silvelirght 4.0 application. As I see it, the Telerik Reporting Report Viewer for Silverlight on Print click generates a PDF file. Is there a way to modify it and send it to a printer? Now that SL4 supports printing, how do I make use this in sending the report to a Printer?

Sundar
Steve
Telerik team
 answered on 21 Jun 2010
1 answer
92 views
I have a report which PaperKind is A4Rotated.

When I print it in web form viewer, it will print correctly in A4Rotated.
(img1.jpg)

But in win form viewer, I need to setup paper size manually, otherwise it will print with PaperKind A4(not rotated).
(img2.jpg)

Is it possible to set it in code?
Steve
Telerik team
 answered on 21 Jun 2010
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?