Telerik Forums
Reporting Forum
3 answers
116 views
on the web form, the parameter holds, but on the reporting library, it does not. what am i dont wrong here?

CampRegistration.vb

   Public Sub New()
        InitializeComponent()

        'Me.ReportParameters("campdateid").Value = 7 'default here

        Me._campdateid = Me.ReportParameters("campdateid").Value

        'Me.TextBox1.Value = Me.ReportParameters("campdateid").Value.ToString


        Me.cdbll.connectionString = bo.Constants.ConnectionString
        Me.rbll.connectionString = bo.Constants.ConnectionString
        
    End Sub

    Private _campdateid As Integer = 0

    Private _contactlist As System.Data.DataTable = Nothing

    Private cdbll As New dal.CampDate()
    Private rbll As New dal.Registration

    Private _registrations As DataTable = Nothing



    

    'Private Sub SubReport1_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles SubReport1.NeedDataSource
    '    Dim subReportItem As Telerik.Reporting.Processing.SubReport = TryCast(sender, Telerik.Reporting.Processing.SubReport)


    '    subReportItem.InnerReport.DataSource = Me._contactlist
    'End Sub

 
    Private Sub CampRegistration_NeedDataSource(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.NeedDataSource

        ' Exit Sub

        '---initial title of report
        Dim cd As acmilan.bo.CampDate = cdbll.getCamp(Me._campdateid)

       

        If cd IsNot Nothing Then
            Me.TextBox1.Value = cd.name & " @ " & cd.city & ", " & cd.state
            Me.TextBox3.Value = cd.start.ToLongDateString & " to " & cd.end.ToLongDateString
        End If
        
        Try

            '---get registrations for campdate
            Me._registrations = Me.rbll.getAllForCampDate(Me._campdateid)
            TryCast(sender, Telerik.Reporting.Processing.Report).DataSource = Me._registrations


             
        Catch ex As Exception
            'Me.TextBox1.Value = ex.StackTrace & ex.Message
        End Try


    End Sub


Report.aspx.vb
  Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgsHandles Me.Load
        If Not IsPostBack Then
            Dim repReport As New thunder.apps.acmilan.reports.CampRegistration
            Dim cdbll As New bll.CampDate(thunder.framework.dal.sql.DataAccess.rMethod.ObjectList)


            Dim id As Integer = Convert.ToInt32(Request.QueryString("campdateid"))
            Dim cd As bo.CampDate = cdbll.getCampdate(id)

            If cd IsNot Nothing Then
                Me.HyperLink1.NavigateUrl = "campprofile.aspx?campid=" & cd.campid.ToString
                repReport.DocumentName = cd.name & "Camp_Registration_Report_" & id.ToString
                repReport.ReportParameters("campdateid").Value = id

                Me.ReportViewer1.Resources.ProcessingReportMessage = "Generating Camp Registration ID" & repReport.ReportParameters("campdateid").Value.ToString

                Me.ReportViewer1.Report = repReport
                Me.ReportViewer1.DataBind()
                Me.ReportViewer1.RefreshReport()



            Else

            End If

        End If
    End Sub


Steve
Telerik team
 answered on 09 Aug 2011
1 answer
111 views
Hello

Any idea as to when the product road map will be made available?  What are you long term goals for this product.  In particular, when do expect to release a End User report designer,

Thanks,

Dan
Vassil Petev
Telerik team
 answered on 09 Aug 2011
3 answers
108 views
Hi
i need to disable a report parameter at runtime, that depends on another reportparameter.
i've basically need to simulate a selectedindexchanged the aspx for reportparameter with multivalue properties.
is it possible?

thanks in advance
Steve
Telerik team
 answered on 09 Aug 2011
2 answers
119 views
Hi,

I have created a horizontal stacked bar chart programmatically.  I would like to move the actual chart-section to the right because my labels are getting squeezed but I can't seem to figure out how to do this.

Please see the attached jpg.
Roman
Top achievements
Rank 1
 answered on 09 Aug 2011
2 answers
117 views
I'm on VS 2010, windows XP and when I run the upgrade wizard, it only goes to Q1 2011.
I guess I'll do a manual upgrade listed in the docs, but shouldn't the auto-upgrade work?
Steve
Telerik team
 answered on 09 Aug 2011
1 answer
140 views
Hi, 

We have a requirement where you need to export some of the columns displayed in the report. I wanted to confirm whether Telerik has some way to achieve this ? 

For eg : 

Suppose my report displays 3 columns C1,C2,C3. While exporting the data of report I want to have only two columns C1 and C2.

Please let me know if it is possible in Telerik reporting.

Thanks and Regards,
Nikunj 
Steve
Telerik team
 answered on 09 Aug 2011
1 answer
94 views
Hi,

I am using the following code to print my report and it works fine on Google Chrome and Fireforx but the problem occurs when I use Internet Explorer (IE) and try to print my report. What happen is that the blank page shows and nothing happens. 

I think the reason it could be that IE can not render that report in pdf format ... ?



protected void Page_Load(object sender, EventArgs e)
    {
        Hashtable deviceInfo = new Hashtable();
        deviceInfo["JavaScript"] = "this.print({bUI: false, bSilent: true, bShrinkToFit: true});";
  
        ReportProcessor reportProcessor = new ReportProcessor();
        RenderingResult result = reportProcessor.RenderReport("PDF", new BarcodesReport(), deviceInfo);
  
        string fileName = result.DocumentName + ".pdf";
  
        Response.Clear();
        Response.ContentType = result.MimeType;
        Response.Cache.SetCacheability(HttpCacheability.Private);
        Response.Expires = -1;
        Response.Buffer = true;
        Response.BinaryWrite(result.DocumentBytes);
        Response.End();
  
    }

Steve
Telerik team
 answered on 09 Aug 2011
2 answers
127 views
I have a border on my ReportViewer.  When I have a report that fills up an entire page (or multiple pages), a portion of the report will display below the ReportViewer's border.  The amount (height) displayed below the border is equivalent to the height of the report toolbar + the params section.  (i.e. If I hide the params, the overlap height is equivalent to the height of the toolbar.

Have you seen this before? Do you know what would cause it?  I'm using IE9, DOCTYPE = xhtml 1.0 strict,

I have attached a screenshot of the overlap.
<div style="float:left;width:850px;">
  <div style="height:792px;">
    <telerik:ReportViewer ID="ReportViewer1" runat="server" style="border:1px solid #ccc;"
         width="99%" height="792px" ReportBookID="ReportBookControl1" Skin="Office2007">
         <resources reportparameterspreviewbuttontext="View Report" />
    </telerik:ReportViewer>
  </div>
</div>

Thanks,
Justin
Justin Lee
Top achievements
Rank 1
 answered on 08 Aug 2011
5 answers
160 views
Hi,

I have designed a multicolumn report which has 3 columns. I copied your example and simply changed the datasource and fields in it. I have not changed anything else (including margin, column spacing, page width, etc.)

Now, when I preview the report during design time (going to Preview tab), it does displays data in 3 columns. Great!

However, when I see the report during run time, it displays only single column. Please suggest!

Regards,
Krunal
Steve
Telerik team
 answered on 08 Aug 2011
1 answer
145 views
Hi everyone,

i just tried to save the content from the new WinForm RichTextBox as HTML and read it into a Telerik Reporting HtmlTextBox. Okay, this failed because of the HtmlTextBox Command limitation... ;)

Is there any known way to show the formated content (colors, font weight etc.) of the RichTextBox in the Report? This would be a really great feature! If there is no existing possibility, would it be possible to create a RichtTextBox FormatProvider which saves the content of the box in a way the reporting HtmlTextBox understands?

Best Regards,
Michael
Stefan
Telerik team
 answered on 08 Aug 2011
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?