Open borislavnnikolov opened 6 years ago
There are two approaches you can take until the print functionality is available as far as I know
Use the winforms version for printing and the wpf version for display. [You need to use a separate project [a dot net framework class library referencing reogrid for winforms ]create a dummy form which is hidden, and then populate the grid on that form and use it for print and print preview]. You also need to recompile the winforms version after changing the assembly name since both assembles [winforms and wpf] are name unnvell.ReoGrid.dll and one will overrite the other, or vice versa.
Use the winforms version for both display and printing in your wpf app. You can do this using the following XAML markup
<WindowsFormsHost Width="800" MaxHeight="250" VerticalAlignment="Stretch">
<rg:ReoGridControl x:Name="grid" />
</WindowsFormsHost>
You have to add a reference to System.Windows.Forms and WindowsFormsIntegration dlls. https://stackoverflow.com/questions/10717305/how-to-add-winform-user-control-into-wpf-so-that-i-can-reference-it-in-the-xaml
I followed the second approach because of a bug I resolved in the winforms version but the fix did not work in the wpf version. #203
duplicate of #69
For now I am using this: