Telerik Forums
Reporting Forum
1 answer
165 views
I'm sure this is just my understanding but it's driving me crazy.  I've reviewed all the documents I can find on page life, etc. but this is what I'm trying to do.

-Passing a value to the report via my website (working with a public property on the report).
-Based upon that passed value, set a string that renders to the header and footer (textbox).

I've tried doing this by:

Partial Public Class CustomerInvoice
    Inherits Report
    Public strCompanyName As String
...

but this doesn't work because of the lifecycle of the report (from what I've read it renders the header and footer after everything as a new report so that value is cleared/nothing)

So I tried ReportParameters to save the value (the OrderID is the one being passed and works):

Public WriteOnly Property OrderID() As Integer
        Set(ByVal value As Integer)
                Me.ReportParameters("CompanyName").Value = value
        End Set
 End Property

Private Sub tbxPayableTo_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles tbxPayableTo.ItemDataBound
        Dim strCompanyName As String = Me.ReportParameters("CompanyName").Value
            Dim tbxPayableTo As Telerik.Reporting.Processing.TextBox = DirectCast(sender, Telerik.Reporting.Processing.TextBox)
            tbxPayableTo.Value = "Make all checks payable to " & strCompanyName
End Sub

But the value is blank.

So the question is, how can I save a value to make sure it's available over the life of the report to render in the header/footer?  I have read other topics and examples and I must be missing something.

A quick example would be great.

Thanks.


Steve
Telerik team
 answered on 21 Oct 2008
3 answers
101 views
Hello:

It seems that my report is overlapping the bottom of the report viewer in IE7 but not in Firefox.  From what it looks like, when the vertical scrollbar is visible, the amount of overlap is equal to the combined height of the "up" and "down" arrows on the scrollbar.  I cannot figure out if I am doing something wrong.  Could someone please help me?

ASPX:
<div id="divReports" runat="server" style="width:100%;"
        <div style="height:500px;"
            <telerik:ReportViewer ID="rptViewer" runat="server"  
                Width="100%"  
                Height="100%" 
                BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid"
            </telerik:ReportViewer> 
        </div> 
</div> 

Screenshots:
IE7 (overlapping web viewer)
Firefox (working as expected)

Thanks for your input,
Barret
Steve
Telerik team
 answered on 21 Oct 2008
3 answers
126 views
Hi 
        I want to generate Report using Dataset but I don't want to display it, it will be generated on PDF directly using Codebehind.  


Thanks
Steve
Telerik team
 answered on 21 Oct 2008
1 answer
158 views
hi ,
i am generating pdf from Report. i have set the page break : after Property
but in pdf he shows the blank page after each record. i want every record should be  on new page. it should not create a blank page after each record in pdf.
please give me the solution as early as possible.

Regards.


Steve
Telerik team
 answered on 20 Oct 2008
13 answers
1.1K+ views
Hello

Is there a way to use the sql connection from my web app's web.config rather than always having to code/input the connection string with every report?

thanks
 - will
tony
Top achievements
Rank 1
 answered on 19 Oct 2008
4 answers
363 views
Having just moved Telerik Reporting Q3 2007 for a web application we have discovered that when a report is rendered then an attempt to export it as a pdf file is made then the w3wp.exe process is pushed to 100% cpu usage and a large increase in memory.

The amount of data in the report is relatively small and no graphics are being used, we are currently using LLblgenProDatasource2 as the datsource for the report.

At first we moved the application to a separate ApplicationPool in IIS 6 and increaded the max number of Threads available to the AppPool, while also turning on the ASP .Net State Service so Session State would work across the extra threads. This resulted in the curious effect where part of a report would render but data for sub reports wouldnt..... perhaps a separate problem with session state here?

The upshot is when running with inProcess session state a relatively small report with no graphical content will grind the server to a halt be overloading the w3wp process ...

any suggestions are most welcome ..

William Jack
David Carnley
Top achievements
Rank 1
 answered on 17 Oct 2008
3 answers
229 views

Hello,
Report report = new Report();

DetailSection detail = new DetailSection();

report.Items.Add(detail);

for (int i = 0; i < 2; i++)

{

SubReport subReport = new SubReport();

Telerik.Reporting.

TextBox textBox = new Telerik.Reporting.TextBox();

textBox.Value = "=Berufnummer";

subReport.Report.DataSource =ds.Tables[i];

detail.Items.Add(subReport);

}

By subReport.Report.DataSource = ds.Tables[i];

getting error : Object reference not set to an instance of an object.

Any ideas.

fruzicka
Top achievements
Rank 1
 answered on 16 Oct 2008
2 answers
92 views
Hi,

forgiveness for my English!




How do I put a label to YAxis

something like:
http://www.imaxenes.com/imagenes/11oh921i.jpg

How do you put that label?

Thanks!










damian
Top achievements
Rank 1
 answered on 16 Oct 2008
1 answer
262 views

Hi 
    I have used Telerik ReportViewer WebForms, but it give me below error.

 

 

Failed to map the path '/'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Failed to map the path '/'.

Source Error:

[No relevant source lines]

Source File: c:\Users\zCon01\AppData\Local\Temp\1\Temporary ASP.NET Files\training_system\781d3e5b\60b67e4\App_Web_bx7so285.0.cs    Line: 0

Steve
Telerik team
 answered on 16 Oct 2008
5 answers
183 views
I have a report in a report library, and this library is referenced by a windows app.  I am trying to render a report directly to PDF from code, i.e. without a report viewer.  I am able to successfully render the PDF; however, the styles in the stylesheets do not carry over to the PDF.  How can I resolve this?
Steve
Telerik team
 answered on 16 Oct 2008
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?