Telerik Forums
Reporting Forum
5 answers
1.7K+ views
I created an user control with RadTabStrip and RadMulitipage.It is placed in a Radpane in MasterPage.Content page(.ascx file) loaded dynamiclly into Multipage,Tabstrip is used to be a navigation.I built some reports.the reportviewer has it's own scrollbar,Both X and Y.when the content area is larger than the viewer's original size,it ugly. I want the reportviewer to fullfill the content area,the scorllbar of X is placed on the bottom and the Y bar is placed on the right.

what should i do?

Thanks
Stef
Telerik team
 answered on 16 May 2013
3 answers
1.0K+ views
I am wanting to set 2 parameter values to the start of the previous month and the last day of the previous month

Can I build a new date in an expression? Something like   = new Date(Today().year, Today().Month, 1).AddMonths(-1)
Chavdar
Telerik team
 answered on 16 May 2013
2 answers
331 views
Hi,

Is it possible to convert a Crystal Report report to a Telerik Report using the Telerik Report Designer?

If so, how?
If not, can I put it on the feature request list? :)

I have tried to convert several Crystal Report files by adding then onto a page, but this way I cant seem to convert it to a TRDX file..
And since we need to check them all by hand using the Report Designer it would be a very neat feature in the Report Designer.

Insad
IvanY
Telerik team
 answered on 16 May 2013
1 answer
61 views
Hello, 

I'm trying to display group headers even though the group is "Empty".  

My example setup:
Two data sources: GroupDataSource and FieldDataSource
Parameter GroupCodes: DataSource:= GroupDataSource, Value:= AllValues(Fields.GroupCode)
FiedDataSource contains SQL:
"WHERE  table.GroupCode in @GroupCodes"

Suppose I select group codes 1, 2, and 3, but there are only fields with groupCodes 1 and 2.  There will only be groups for 1 and 2, obviously, but I would like to make a header for the "empty" group (non-existant, in a way...) 3.  Is this possible?

Thanks,
Gabriel
IvanY
Telerik team
 answered on 16 May 2013
1 answer
173 views
Hi,

I have a chart that looks like this (see attached image).

How can I hide the "0" labels ?

I checked this: http://www.telerik.com/community/forums/reporting/telerik-reporting/how-do-you-hide-stacked-bar-items-which-are-zero-or-null.aspx

isn't any other way ? Like just iterate though the items that are databound and set Visible = false for labels ?

Many thanks,

Alex


 
Stef
Telerik team
 answered on 16 May 2013
1 answer
124 views
I have a report with a report footer and a page footer
when I add a subreport to the report footer the report adds blank pages with only the page footer, in spite of the fact that the subreport only appears once, at the very end
 - the sub report only has detail, the report header and footer having been set to zero height

this only appears in the page preview / printed page

what is going on here - and more importantly, how can I fix it?
Elliott
Top achievements
Rank 2
 answered on 15 May 2013
0 answers
45 views
So with html/razor code in the View like so:

            <tr id="trBeginDate">
                <td>
                </td>
                <td>
                    @Html.LabelFor(m => m.BeginDate)
                </td>
                <td style="padding-right: 20px;">
                    @Html.TextBoxFor(m => m.BeginDate, new { alt = "date-us", style = "width: 164px;" })
                </td>
                <td>
                    @Html.LabelFor(m => m.BeginTime)
                </td>
                <td style="padding-right: 20px;">
                    @Html.TextBoxFor(m => m.BeginTime, new { style = "width: 109px;" })
                </td>
            </tr>

...does the TextBoxFor() construct/syntax perform two-way binding to the model? That is to say, does this assign the values entered into the textboxes thus generated to the BeginDate and BeginTime model members? I assume so; just want to verify.

Now, to combine the Date and Time values I want to pass into one control, I imagine I can replace the BeginDate and BeginTime on the model with a BeginDateTime, and then change the code above to:

            <tr id="trBeginDate">
                <td>
                </td>
                <td>
                    @Html.LabelFor(m => m.BeginDateTime)
                </td>
                <td style="padding-right: 20px;">
                    @Html.TextBoxFor(m => m.BeginDateTime, new { alt = "date-us", style = "width: 164px;" })
                </td>
            </tr>

...right? But...how do I change the associated Telerik code, which presumably is expecting a Date and a Time, not a combined DateTime?

BTW, I tested using "format code block" for the snippets above, but the preview looked like Dallas warmed over.
Clay
Top achievements
Rank 1
 asked on 15 May 2013
1 answer
301 views
Hey everyone.

I'm currently creating a report from an objectDataSource successfully.  The report includes a few layers of grouping.  Rather than create a single PDF, I want to export several instead, one for each of a certain attribute.  It is noteworthy that the attribute I'd like to split by is not added as a group to the report but it can be if needed.

How does one go about doing this?  I would assume the easiest way is to go through the top level of each report and get the appropriate atttribute, and run it through a foreach.  Within the foreach I would generate a PDF.  However, I'm not sure if this is the best idea, and I don't know how to get data from the report in this way.  (To be more specific, getting parameters from my data source at every top level).

Would anyone have suggestions?  Thanks.
Stef
Telerik team
 answered on 15 May 2013
1 answer
79 views
I am wondering if it is possible to do the following:

I have 4 reports that have 3 totals at the bottom: Cases, Allowance and Dollars
I need to insert a sub report to the report footer to appear immediately under the grand total line that also uses Cases, Allowance and Dollars
I'd like to create one sub report, not 4
is it possible to move and / or resize the textboxes on the sub report to line up with the report being produced?
Elliott
Top achievements
Rank 2
 answered on 14 May 2013
1 answer
101 views
I am sure I must be missing something simple here, but I can't seem to user an ado.net datareader with reporting. Here is a code sample:

Private Sub RptRadIdleTime_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.NeedDataSource
        rptHeaderBox.Value = "Report Criteria:" & vbCrLf & "Date Range: " & StartDate.ToShortDateString & " to " & EndDate.ToShortDateString & vbCrLf & _
        "Employee: " & EmployeeName & vbCrLf
 
        Dim cn As New SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString)
 
        cn.Open()
 
        Dim cmd As New SqlCommand("ReportIdleTime")
        cmd.CommandType = CommandType.StoredProcedure
        cmd.Connection = cn
        cmd.Parameters.Add(New SqlParameter("EmployeeID", EmployeeID))
 
        Dim p1 As New SqlParameter("Start", SqlDbType.DateTime)
        p1.Value = CDate(StartDate)
 
        Dim p2 As New SqlParameter("End", SqlDbType.DateTime)
        p2.Value = CDate(EndDate)
 
        cmd.Parameters.Add(p1)
        cmd.Parameters.Add(p2)
        Me.DataSource = cmd.ExecuteReader
    End Sub

This yields the following error:

An error has occurred while processing TextBox 'TextBox6': Invalid attempt to read when no data is present.

(And the same error on every other field.)

The same method of connecting works fine with linq-to-sql.

Thanks for any help,

David
Chavdar
Telerik team
 answered on 14 May 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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?