Home Forums WinForms controls Xceed Grid for WinForms The report style sheet could not be loaded.:

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16422 |

    Hi,

    Found another interesting problem for the community. As usual any help will be appreciated.

     When trying to open the  Generate Report page, this is happening in some computers, but not all of them. I’m clueless with this.

     The report style sheet could not be loaded.:    at Xceed.Grid.Reporting.ReportStyleSheet.Load(Stream stream)
       at Xceed.Grid.Reporting.ReportStyleSheet.LoadStockStyleSheet(String name)
       at Xceed.Grid.Reporting.ReportStyleSheet.get_Contemporary()
       at Xceed.Grid.Reporting.ReportStyleSheet.get_StockStyleSheets()
       at Xceed.Grid.Reporting.GenerateReportForm.PopulateReportStyleList(String styleNameToSelect)
       at Xceed.Grid.Reporting.GenerateReportForm.InitializeReportStyleList()
       at Xceed.Grid.Reporting.GenerateReportForm.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    The code i used to call the window is:

     

                    using (GenerateReportForm generateReportForm = new GenerateReportForm(currentGrid))
                    {
                        generateReportForm.Icon = this.Icon;
                        generateReportForm.ShowDialog(this);
                    }

     

    Thank you in advance.

    Imported from legacy forums. Posted by Testing (had 1638 views)

    User (Old forums)
    Member
    Post count: 23064

    Apparently there are a couple of Inner Exceptions:

     There is an error in XML document (26, 6).

     Font ‘Lucida Sans’ does not support style ‘Regular’.

    I didn’t modify any settings in the Style sheets so they are untouched. Check the fonts and I can see the Lucida sans Regular installed in the system.

     

    Imported from legacy forums. Posted by Testing (had 359 views)

    User (Old forums)
    Member
    Post count: 23064

    When the GenerateReportForm is created, it parses the default built-in style sheets. The style sheet “Contemporary” uses the font “Lucida Sans”, which is not shipped with Windows. Most installations have this font because some software or other installs it but it’s not guaranteed.

    We have modified the “Contemporary” StyleSheet to use the “Lucida Sans Unicode” font instead. This font is shipped with Windows XP and later and should therefore be found on all modern machines.

    We ship the xml files of the default style sheets with the grid component. The style sheets are located here:

    <Xceed Install>\Xceed Grid for .NET 3.7\Report StyleSheets

    I have attached the file to this post.

    Until we ship a new service release containing this fix, you can use these xml files and replace the old Contemporary.xml with the new one. Then, point GenerateReportForm to use them instead of the built-in versions. Like this:

    using( GenerateReportForm form = new GenerateReportForm( grid, @”<Xceed Install>\Xceed Grid for .NET 3.7\Report StyleSheets” ) )
    {
      generateReportForm.Icon = this.Icon;
      generateReportForm.ShowDialog(this);
    }

    Imported from legacy forums. Posted by André (had 556 views)

    User (Old forums)
    Member
    Post count: 23064

    The fix for this issue is now available in our latest version.

    You can download it here.

    Imported from legacy forums. Posted by André (had 1420 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.