Hi , I was trying with reporting and added report viewer to my project. Config file entires where created automatically.
But i'm getting error saying. Unable to cast COM object of type 'Syste,_ComObject' to class type 'Telerik.Reporting.Vs.COmmon.AssemblyRefernce.'
If you guys have any idea let me know. I have attacked the screen shots .
Thanks in Advance,
Suresh
Hello. I have big problem with reportViewer. I try to put it on RadDocumentPane like this:
<
telerikDocking:RadDocumentPane
x:Class
=
"Gcg.Olb.Client.ReportModule.Views.ReportDocumentPane"
xmlns:telerikDocking
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
xmlns:tr
=
"http://schemas.telerik.com/wpf"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
tr:ReportViewer
/>
</
Grid
>
</
telerikDocking:RadDocumentPane
>
WHen I try to add this pane to docking control I receive 2 Object null refence errors and ReportView is not displaing. I need to move my application window to display it. And in output window I have many errors:
System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateBackCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateBackCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateForwardCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateForwardCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'StopRenderingCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=StopRenderingCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'RefreshReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=RefreshReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToFirstPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToFirstPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToPreviousPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToPreviousPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsMoveToPageEnabled' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsMoveToPageEnabled; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'IsEnabled' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'PageNumberModel' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageNumberModel; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'NavigateToSpecificPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=NavigateToSpecificPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBoxEx' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.LabelOf; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'PageCount' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageCount; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToNextPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToNextPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'MoveToLastPageCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=MoveToLastPageCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'PageSetupCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PageSetupCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'TogglePrintPreviewCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TogglePrintPreviewCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsPrintPreviewChecked' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsPrintPreviewChecked; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 40 : BindingExpression path error: 'PrintReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PrintReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'RenderingExtensions' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=RenderingExtensions; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedRenderingExtension' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=SelectedRenderingExtension; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'SelectedItem' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsExportEnabled' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsExportEnabled; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'IsEnabled' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 40 : BindingExpression path error: 'HasDocumentMap' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasDocumentMap; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 40 : BindingExpression path error: 'HasParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadToggleButton' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsParametersAreaVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsParametersAreaVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'Border' (Name='ParametersAreaPane'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'VisibleParameterModels' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=VisibleParameterModels; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'ReportParametersControl' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'PreviewReportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=PreviewReportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.PreviewButtonText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsPreviewButtonVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsPreviewButtonVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='UpdateParametersDialog'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'UpdateParametersProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=UpdateParametersProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsUpdatingParameters' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsUpdatingParameters; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapWidth' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=DocumentMapWidth; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'ColumnDefinition' (HashCode=28417134); target property is 'Width' (type 'GridLength')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'Border' (Name='DocumentMapPane'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'SelectedDocumentMapNode' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=SelectedDocumentMapNode; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'SelectedItem' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'DocumentMapNodes' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=DocumentMapNodes; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadTreeView' (Name='DocumentMapTreeView'); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsDocumentMapVisible' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsDocumentMapVisible; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'GridSplitter' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsInProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='ViewerProgressMessage'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'ProgressMessage' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ProgressMessage; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsInProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=IsInProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'Error' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=Error; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'HasError' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=HasError; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBox' (Name='ViewerError'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ShowExportDialog; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'DialogBox' (Name='ExportDialog'); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Error: 40 : BindingExpression path error: 'ExportProgress' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ExportProgress; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Error: 40 : BindingExpression path error: 'ShowExportDialog' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ShowExportDialog; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadProgressBar' (Name=''); target property is 'IsIndeterminate' (type 'Boolean')
System.Windows.Data Error: 40 : BindingExpression path error: 'CancelExportCommand' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=CancelExportCommand; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Command' (type 'ICommand')
System.Windows.Data Error: 40 : BindingExpression path error: 'TextResources' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=TextResources.CancelButtonText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadButton' (Name=''); target property is 'Content' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'Zoom' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=Zoom; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadSlider' (Name=''); target property is 'Value' (type 'Double')
System.Windows.Data Error: 40 : BindingExpression path error: 'AvailableZoomValues' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=AvailableZoomValues; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'ItemsSource' (type 'IEnumerable')
System.Windows.Data Error: 40 : BindingExpression path error: 'ZoomText' property not found on 'object' ''ShellViewModelV2' (HashCode=49729368)'. BindingExpression:Path=ZoomText; DataItem='ShellViewModelV2' (HashCode=49729368); target element is 'RadComboBox' (Name=''); target property is 'Text' (type 'String')
hi,
we're struggled quite a lot with building telerik reports using the new Q1 2015 report builder and are hopefully at the final hurdle.
We've built a report using an entitydatasource pointed at a function written in the DbContext project, GetOrderById(int id). This produces an invoice output which now works in the designer.
When we run it in our application using the webforms report viewer (for compatability purposes) it keeps trying to create a local database instead of reading the sql server connection of the context we've passed in to it.
Here is the runtime code that i've bound to the page_load event of a page (for getting it working purposes)
Dim
source =
New
Telerik.Reporting.UriReportSource()
source.Uri =
"web/apps/shared/InvoiceReport2.trdx"
Dim
report =
New
Telerik.Reporting.Report
Dim
ds
As
New
EntityDataSource()
Dim
context =
New
DataContext(connectionString) // passed in as a text string and is 100% valid
ds.Context = context
ds.ContextMember =
"GetOrderForReports"
ds.Parameters.Add(
"OrderId"
,
GetType
(
Integer
), 89720)
report.DataSource = ds
ReportViewer1.ReportSource = source
ReportViewer1.RefreshReport()
the error we get is as below. any help would be great, cheers.
An error has occurred while processing Report 'invoicereport2': An error occurred while invoking data retrieval method. ------------- InnerException ------------- Exception has been thrown by the target of an invocation. ------------- InnerException ------------- Directory lookup for the file "D:\xxxxxx\WebSites\xxxxx\App_Data\xxxxx.mdf" failed with the operating system error 2(The system cannot find the file specified.). CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
Hi,
I was trying out with Reporting and added report viewer to the project. But i'm not able to add any other items as all the items are seems to be locked. Check out the screen shots attached to get better idea on what i'm talking about.
If we enable show all. All the items are seen but locked. Only report viewer is enabled.
If you guys have an answer please reply to this thread.
Thanks in advance.
Swaroop
int count = 0;
var rowGroups = this.crosstab1.RowGroups;
while (rowGroups != null)
{
foreach (var group in rowGroups)
{
if (hideColumnIndexes.Contains(count))
{
group.ReportItem.Width = new Telerik.Reporting.Drawing.Unit(0.000000,
Telerik.Reporting.Drawing.UnitType.Inch);
}
}
if (rowGroups.Any())
{
rowGroups = rowGroups[0].ChildGroups;
}
else
{
rowGroups = null;
}
count++;
}