Telerik Forums
Reporting Forum
4 answers
285 views
I've setup a report, and it opens fine in the preview pane, even exports fine (via the preview pane). However when I attempt to programmatically export this report directly to PDF the font types are not retained. They seem to default to MS Sans Serif... any idea why this might happen? I even tried manually specifying deviceInfo["FontEmbedding"] = "Full"; before I render the report (via a hastable), and it didn't help.
Narmatha P
Top achievements
Rank 1
 answered on 08 May 2010
1 answer
239 views
Telerik -

the textbox context menu item 'Conditional Formatting...' is a bit misleading ...  it seems like it really means Conditional style.  I have 2 fields in a dataset (value and rowtype).  one can have both numeric and char values, the other column is a format specifier string.  So depending on the value of the first column I want to format the second column.  currently I am doing this with expressions on the textbox but as you can imagine its alot of IIFs to test for the format specifier.

It would really help if i had a formatting button on the conditional expression dialog ...

photo attached ... see! ive already done 1/2 the work for you ;-)

Milen | Product Manager @DX
Telerik team
 answered on 07 May 2010
1 answer
153 views
I am attempting to write a report that uses 4 cascading parameters. The first two parameters are set to "Allow Null" = False.

The second two are set to "Allow Null" = True.

The report works fine until I add the fourth parameter. When the fourth parameter is added, the third parameter looses all functionality and can not even be unchecked. Can somone have a look at my parameters and let me know if you see anything wrong?

Main Filter:
=Fields.Regiment = =Parameters.Regiment.Value AND =Fields.StatusText = =Parameters.OpenClosed.Value AND =Fields.Battalion = =IsNull(Parameters.Battalion,Fields.Battalion) AND =Fields.Battery = =IsNull(Parameters.Battery,Fields.Battery)

Parameter 1 Regiment:
Display Member:  = Fields.Regiment
Value Member = Fields.Regiment
Filter = None

Parameter 2 OpenClosed

Display Member:  = Fields.StatusText
Value Member = Fields.StatusText
Filter = Fields.Regiment = =Parameters.Regiment.Value

Parameter 3 Battalion
Display Member:  = Fields.Battalion
Value Member =  Fields.Battalion
Filter = Fields.Regiment = =Parameters.Regiment.Value AND =Fields.StatusText = =Parameters.OpenClosed.Value
AllowBlank = True
AllowNull = True

Parameter 4 Battery
Display Member:  = Fields.Battery
Value Member  = Fields.Battery
Filter
=Fields.Regiment = =Parameters.Regiment.Value AND =Fields.StatusText = =Parameters.OpenClosed.Value AND =IsNull(Parameters.Battalion,Fields.Battalion)
AllowBlank = True
AllowNull = True
Peter
Telerik team
 answered on 07 May 2010
5 answers
688 views
Hi!

I am bagning my head against Crosstab here, I am probably missing some important insight. Here are a bunch of questions:

1. Why does the "Row Groups" tray (or what you call it) sometimes show "(RowGroup)" inside parenthesis?
2. Why does a crosstab produced by the wizard seemingly create "double" row groups - one within parentheses and one below that without parentheses?
3. Why do I get "static" "droppings" in my tray layout? They seem to appear when I add/remove rows etc.
4. When I add a row group (child) it seems to add it to the *right or left* of the selected group cell - why not below and above? And how am I supposed to move it afterwards to get it below?

My context: I am creating a report with 3 row groups, stepped layout. Most of this has worked fine - although it seems quite easy to "break" the model so that you get odd error messages and occasionally hanging VS08. Anyway, this is approximately what I want:

Heading1
       Heading2
                 Heading3                              10       20       30
                 Heading3                              10       20       30
       Total                                                 20       40       60

This is quite analogous to the product sales crosstab example. I can't understand what to select and then what menu choice I am supposed to use to create that "Total" above.

regards, Göran
Milen | Product Manager @DX
Telerik team
 answered on 07 May 2010
1 answer
510 views
I am using the folowing business object as the data source of my report

    class BlendingModel  
    {  
        private List<BlendingModelRow> _dataRow = new List<BlendingModelRow>();  
        public DateTime StartDate { get; set; }  
        public DateTime EndDate { get; set; }  
        public List<BlendingModelRow> dataRow { get { return _dataRow; } set { _dataRow = value; } }  
    }  
 

How do I referrence the items in dataRow on the report.  In the text box on the report I have =dataRow.W5_Runtime.  When I run the report I get an error that W5_Runtime does not exist.  W5_Runtime is a member of dataRow.

Thanks,

Jim
Milen | Product Manager @DX
Telerik team
 answered on 07 May 2010
1 answer
89 views
When we install a tested module to a second site (not the development site) the Telerik Web Viewer does not register correctly on the new site and it cannot be accessed. Scripting errors occur because the object is missing.

Here is what is included in the DNN manifest file and isntalled on the site:

Module containing the Viewer control. (both ASCX and ASCX.VB files)
The following DLL's aree installed into the \bin folder:

Telerik.Reporting.dll

Telerik.ReportViewer.WebForms.dll

Telerik.Web.UI.dll

WebReports.dll


The installation package executes correctly and places all of the files into their respective locations. The report selector module can be added to a tab, but the viewer will not display and the system generates scripting error when trying to build the default.aspx page that holds the viewer.

What are we missing?

thanks...

David House
Top achievements
Rank 2
 answered on 07 May 2010
8 answers
161 views
Hello,

I am trying to display a report in MOSS 2007 via the smartpart. I am able to generate my report in a basic asp.net website and all is well. I am creating a user control and I set the actual report in the code behind because I need to set a property in the report first to determine what to query for in the actual report(based off of a query string).

When I add the report to MOSS all I get is the report viewer with no report loaded. Does this have something to do with the page life cycle of when the report needs to be generated?

I had read something along these lines for another post about a Rad control http://www.telerik.com/community/forums/aspnet-ajax/ajax/first-time-refesh-in-radajaxpanel-ajax-call.aspx  Any help would be most appreciated.

Thanks,

Justin
Gregory Hite
Top achievements
Rank 1
 answered on 06 May 2010
1 answer
178 views
Hi there,
We are using FileUpload control in our application to upload an image.
But along with uploading a file, we are also some other properties of that file, so we have proivided another button to "Upload and save". Please find here the attached screen shot of UI.
So for us, the "Upload" button of file upload control is use less. But there is not any property of FIleUpload control to remove or disabled the "Upload" button.

Will you please help me solve this issue.
Valentin.Stoychev
Telerik team
 answered on 06 May 2010
1 answer
273 views
Hi All -

oiy! this one is a pain.  I have a column in a dataset that is technically string but in reality has both string and numeric values.  well I want to test for numeric values ... and then format accordingly. so for example suppose i have a dataset that goes ...

10
20
30
apple
40
50

I want the format to be currency. here is my expression.  *IsNumeric is a UDF that simply wraps Microsoft.VisualBasic.IsNumeric.*

=iif(IsNumeric(Fields.[YTD Target]),Format("{0:c}",CDbl(Fields.[YTD Target])),Fields.[YTD Target])

well the report bombs on 'apple' citing 'Input was not in correct format.

The only thing I can figure is that both True and False parts are fully evaluated when IIF is called.. so in the case of 'apple' the True part will surely fail eventhough isNumeric("apple") = False
Peter
Telerik team
 answered on 06 May 2010
7 answers
170 views

Hi,

I hope someone can point me in the right direction.  I have upgraded to Telerik Reports 4.0.10.310, and I've noticed that the reports are working great with stored procedures with parameters in the report library assembly.  However, when I try to update the report viewer with the new report, I am getting a page error at the website, with a "Conditional compilation is turned off" error.  My development environment is VS 2010, Telerik Reports 4.0.10.310, using ASP.NET with VB.NET.  The code is below.

        <telerik:ReportViewer ID="ReportViewer1" runat="server"   
            Report="Reports.WeekDetail, Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"   
            Width="7.5in" Height="450px">  
        </telerik:ReportViewer> 
 
VB.NET:
    Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged  
        ReportViewer1.Report.ReportParameters(0).Value = DropDownList1.SelectedValue  
    End Sub 
 

In the last version, changing the report parameters updated the report without any additional code.

Thanks,
Ed
Joe
Top achievements
Rank 2
 answered on 05 May 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?