Upgrade WPF Report Viewer to Q1 2014

15 posts, 0 answers
  1. Ricky
    Ricky avatar
    9 posts
    Member since:
    May 2013

    Posted 21 Mar 2014 Link to this post

    Hi there, 

    I am upgrading both my WPF and Reporting controls from 2013Q1 to 2014Q1, the entire solution is not built, and if I add the version redirect, the report is not showing anything.My report view is so simple, is there anything I need to code for the 2014Q1 reporting? following is my xaml code:


    <Window
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:tr="http://schemas.telerik.com/wpf" xmlns:Report="clr-namespace:LavaBid.WinApp.Report" x:Class="LavaBid.WinApp.View.ReportView"
            Title="Jumbo Loan Strat Report" Width="1200" Height="800">
        <Grid>
            <Label Content="{Binding TestText}" Margin="0,86,-8,-42" Width="{DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}}"  />

            <tr:ReportViewer HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" ReportSource="{Binding ReportSource}" Width="1160" Height="700" />
        </Grid>
    </Window>
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 26 Mar 2014 Link to this post

    Hello Ricky,

    Starting from Telerik Reporting Q1 2014 both the Silverlight and WPF report viewers will support only the implicit styling, i.e. style without the x:Key attribute. For more information and the required changes see: Upgrade Path - Q1 2014 article.

    Regards,
    Peter
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. DevCraft banner
  4. Ricky
    Ricky avatar
    9 posts
    Member since:
    May 2013

    Posted 26 Mar 2014 in reply to Peter Link to this post

    Turn out it is the windows 7 template has bug, it is not compiled and I have to manually fix it.
  5. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 26 Mar 2014 Link to this post

    Hello Ricky,

    Please double-check if you have updated the properly the NoXaml binaries and the corresponding XAML resources.

    From Telerik Reporting product folder you need only the Telerik.ReportViewer.Wpf.dll and Telerik.ReportViewer.Wpf.xaml. The rest assemblies and corresponding XAML files should be updated from the UI for WPF product folder.

    We will appreciate it if you update the thread with details about the exact used version of Telerik Reporting and UI for WPF, and the received error when you use Windows 7 theme's resources.

    Regards,
    Stef
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  6. Ricky
    Ricky avatar
    9 posts
    Member since:
    May 2013

    Posted 26 Mar 2014 in reply to Stef Link to this post

    These are the version I am using:
    Reporting: 8.0 14.225 (Feb 25, 2014)
    UI for WPF: 2014.1 224 (Feb 24, 2014)

    I have tried to change the dll to NoXaml binaries but with no luck. Since both libraries are official release, I will be surprised if I need to change my WPF UI libraries to some other libraries (which is really confusing as the dll version is the same, but different file size). I will expect after installation of WPF UI, run the upgrade wizard, and reference the Reporting libraries will work.
  7. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 27 Mar 2014 Link to this post

    Hello Ricky,

    The dependencies for the specified versions of Telerik Reporting and UI for WPF are described in the Upgrade Path Q1 2014 help article.

    For the mentioned two versions, you will need to use binding redirects, as officially the WPF ReportViewer version 8.0 14.225 was built against earlier version of the UI for WPF. Both products are synchronized in the consecutive internal builds: Telerik Reporting 8.0.14.311 and UI for WPF 2014.1.310.

    To upgrade the project, you would need to run the Upgrade Wizard of each product.

    Regards,
    Stef
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  8. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 23 Apr 2014 Link to this post

    I've upgraded both UI for WPF plus Reporting to the latest version. I've added the binding redirects. my project finally works, but my report is blank. I understand this is because I have to use implicit styling.

    I'm not sure how to go about changing my entire project to use implicit styling so that nothing breaks. I've been using the StyleManger to mix and match the themes. The application theme is OfficeBlue, but in various places I use Windows8 theme because it meshes better with the look of my UI.

    If I switch to implicit styling, how do I mix and match the themes for various controls since I'm merging the xaml dictionaries? I guess at the moment, I'd prefer to only use implicit styling on the ReportViewer (unless I can figure out the theme mixing), but won't changing the referenced dlls in my project to the NoXaml ones for the ReportViewer cause all the other controls to require implicit styling as well?

    What's the best way to get this working? As far as I can tell, the only problem I'm having with my project is that the Report Viewer is blank because of the new styling.
  9. Ricky
    Ricky avatar
    9 posts
    Member since:
    May 2013

    Posted 23 Apr 2014 in reply to Rayne Link to this post

    Rayne,

    in your WPF project, you need to create the Theme folder, and copy whatever theme you need from Telerik installed library, then you need to modify your app.xaml to add reference to the theme, after that's done, your report will be back.

    --ricky
  10. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 24 Apr 2014 in reply to Ricky Link to this post

    Thanks. I did this and my Report works again. But some of my controls are now not using the applied styles. According to the docs, I need to include the following xaml files:

    System.Windows.xaml
    Telerik.Windows.Controls.xaml
    Telerik.Windows.Controls.Input.xaml
    Telerik.Windows.Controls.Navigation.xaml
    Telerik.ReportViewer.Wpf.xaml 

    So I did this. But I have several controls (buttons, expander, etc) that are using a different theme than the global theme. I override them using StyleManager.Theme.

    Now that I added the styling for the Report, those other controls are not being overridden. They are picking up the global theme. How do I get them back to using the overridden theme?

  11. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 29 Apr 2014 Link to this post

    Hi Rayne,

    Only the Reporting WPF ReportViewer requires implicit styles - the Telerik.ReportViewer.Wpf.xaml and Telerik.ReportViewer.Wpf.dll. Thus you can use the full binaries from Telerik Ui for WPF and control their styling as before through the StyleManager. Still styles for the viewer will be in the Telerik.ReportViewer.Wpf.xaml file.

    If you switch entirely to implicit styling, you can modify the XAML files, or use inline style setters to change specific controls look.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  12. Patrick
    Patrick avatar
    8 posts
    Member since:
    May 2015

    Posted 24 Aug 2015 Link to this post

    I'm updating to the Q2 2015 reporting tools in VS2015, and I'm having an issue with the many guides that are identical to this one:
    http://www.telerik.com/support/kb/reporting/details/the-wpf-silverlight-report-viewer-is-blank-after-upgrading-from-version-prior-to-q1-2014-to-q1-2014-or-later

    My problem is that when I add the following: 

    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.ReportViewer.Wpf.xaml"/>
    it squiggly underlines Telerik.ReportViewer.Wpf.xaml and tells me "(my path)\Assemblies\Telerik.Windows.Themes.Expression_Dark.dll\Themes\Telerik.ReportViewer.Wpf.xaml" path not found

     I have 7 other identical lines, pointing to other xaml files and they all seem to be working fine.
    I've updated all relevant references in my project to be sure I don't have lingering 2013 versions about, and all is well on that front.
    It's just this one file that's not behaving.

    Any suggestions?

    Thanks!

  13. Patrick
    Patrick avatar
    8 posts
    Member since:
    May 2015

    Posted 25 Aug 2015 in reply to Patrick Link to this post

    To be more specific:
    The guide post I linked above says "2. Add the respective xaml files for the desired theme. ..."
    How/where are those xaml files to be added? We've been using this theme for over 2 years, but we don't have any of those xaml files anywhere in our solution currently.
  14. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 27 Aug 2015 Link to this post

    Hello Patrick,

    Please test to re-add all assemblies manually from the local examples folder, and all XAML resources from the Wpf folder. More details where resources are located are available in How to: Add report viewer manually to a WPF application.


    General upgrade instructions if you have both Telerik Reporting and Telerik UI for WPF:

    • Get Telerik Reporting assemblies from C:\Program Files (x86)\Telerik\Reporting Q2 2015\Bin;
    • Get Telerik.ReportViewer.Wpf.xaml from C:\Program Files (x86)\Telerik\Reporting Q2 2015\Wpf\Themes;
    • Get Telerik UI for WPF assemblies from C:\Program Files (x86)\Telerik\UI for WPF Q2 2015\Binaries.NoXaml;
    • Get the corresponding XAML files (without Telerik.ReportViewer.Wpf.xaml) from C:\Program Files (x86)\Telerik\UI for WPF Q2 2015\Themes.Implicit;

    If you are using Telerik UI for WPF theme assemblies, the XAML can be referred from the corresponding theme's DLL - Setting a Theme (Using Implicit Styles).


    If you need further help, feel free to open a support ticket and send us a demo project to check your settings.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  15. Patrick
    Patrick avatar
    8 posts
    Member since:
    May 2015

    Posted 27 Aug 2015 in reply to Stef Link to this post

    The guide references this folder, but there is no "examples" folder in the Reporting Q2 2015 folder:

     C:\Program Files\Telerik\Reporting Q2 2015\Examples\CSharp\WpfDemo\bin

    The guide also says to "Add the following xaml files", which was part of my question above: "add them to where?"

    You said "Get Telerik.ReportViewer.Wpf.xaml from C:\Program Files (x86)\Telerik\Reporting Q2 2015\Wpf\Themes;"
    I'm asking "Where do I put it?"

     

    Thank you.

     

  16. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 28 Aug 2015 Link to this post

    Hi Patrick,

    Please, check the Installing Telerik Reporting article, where you can find details how to install Telerik Reporting, and what and where will be included.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner