ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2015-11-30 15:38:31

dhongki
Member
Registered: 2015-11-30
Posts: 4

Loading reoGrid in WPF Dockpanel or controls

Hi, I'm trying to add reogrid to a tabitem content but it does not show any workbooks or worksheet. Im also try to add on grid and dockpanel but it returns an incompatibility error. Can somebody explain or help me on this problem? Does version 9.2 works on WPF VB?

Offline

#2 2015-11-30 22:38:24

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Loading reoGrid in WPF Dockpanel or controls

Hi, Is there any detailed message for the error? or some pictures will be helpful. What is your Visual Studio and .NET version?

Offline

#3 2015-12-01 00:33:21

dhongki
Member
Registered: 2015-11-30
Posts: 4

Re: Loading reoGrid in WPF Dockpanel or controls

Hi,

First I tried this one.  I have a TAB Control in a WPF Form and trying to add the reogrid in one of the tab contents. The programs works fine and it doesnt show any error but it also does not show any workbook or worksheet

        Private GRID As unvell.ReoGrid.ReoGridControl
*****************************************************

        FILE_VIEWER.Items.Clear()
        With FILE_VIEWER
            TAB = New TabItem
            With TAB
                .Header = "FILE 1"
                .Name = "File1"
            End With
            .Items.Add(TAB)

            GRID = New unvell.ReoGrid.ReoGridControl
            GRID.Dock = Forms.DockStyle.Fill
            Using s As New System.IO.FileStream(PathToExcelFile.xlsx, FileMode.Open, FileAccess.Read, FileShare.Read)
                GRID.Load(s, unvell.ReoGrid.IO.FileFormat.Excel2007)
            End Using
            GRID.Visible = True
            GRID.Show()
            CType(.Items(.Items.Count - 1), TabItem).Content = GRID
        End With


I am also trying to add the reogrid to dockpanel, and the error is  "Value of type 'unvell.ReoGrid.ReoGridControl' cannot be converted to 'System.Windows.UIElement'."


        GRID = New unvell.ReoGrid.ReoGridControl
        GRID.Dock = Forms.DockStyle.Fill
        Using s As New System.IO.FileStream(PathToExcelFile.xlsx, FileMode.Open, FileAccess.Read, FileShare.Read)
            GRID.Load(s, unvell.ReoGrid.IO.FileFormat.Excel2007)
        End Using

        GRID.Visible = True
        GRID.Show()
        testdock.Children.Add(GRID)



Please help, thank you

Offline

#4 2015-12-01 04:08:31

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Loading reoGrid in WPF Dockpanel or controls

Are you sure you using a DLL that is existing in the WPFRelease folder? It seems like a WinForm version. Can you open the project of WPF demo source, build and see the result?

Offline

#5 2015-12-01 04:16:48

dhongki
Member
Registered: 2015-11-30
Posts: 4

Re: Loading reoGrid in WPF Dockpanel or controls

I dont know sir, but i think you are right. I just installed the reogrid using Nuget Package Manager and i dont if its for WPF or Not.

Offline

#6 2015-12-01 05:06:56

dhongki
Member
Registered: 2015-11-30
Posts: 4

Re: Loading reoGrid in WPF Dockpanel or controls

Hi Sir,

Now it works fine. I uninstalled the the reogrid dll from nuget package manager and used the dll from WPF Demo Source

Thank you very much...

Last edited by dhongki (2015-12-01 07:31:05)

Offline

Board footer

Powered by FluxBB