Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Wizard - XAF Win and XAF BLAZOR Net Core 6 #950

Closed
AndresVanegasC opened this issue Sep 13, 2022 · 7 comments
Closed

Import Wizard - XAF Win and XAF BLAZOR Net Core 6 #950

AndresVanegasC opened this issue Sep 13, 2022 · 7 comments
Labels

Comments

@AndresVanegasC
Copy link

Hi!

I am trying to implement the windows importer in XAF Blazor but I ran into 2 difficulties.

  1. I get an error when importing
  2. How can I do it in Blazor?

I initially wrote to XAF support but they sent me here, could you please validate the ticket I issued.

This ticket is in the name of Jose Russi.

https://supportcenter.devexpress.com/ticket/details/t1115160/blazor-import-and-export-excel

image

image

Error in debug.

ERROR:

Object reference not set to an instance of an object.

at DevExpress.ExpressApp.Localization.XafResourceReader.FillLocalizationDictionary(String aspect, IModelLocalizationGroup localizationGroupNode, Hashtable resultDictionary)
at DevExpress.ExpressApp.Localization.XafResourceReader.GetEnumerator()
at System.Resources.ResourceSet.ReadResources()
at System.Resources.ResourceSet…ctor(IResourceReader reader)
at DevExpress.ExpressApp.Localization.XafResourceManager.GetResourceSetCore(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at DevExpress.ExpressApp.Localization.XafResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture)
at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName)
at Xpand.ExpressApp.ImportWizard.Win.Wizard.ExcelImportWizard.InitializeComponent() in D:\a\1\s\Xpand\Xpand.ExpressApp.Modules\ImportWizard.Win\Wizard\ExcelImportWizard.designer.cs:line 117
at Xpand.ExpressApp.ImportWizard.Win.Wizard.ExcelImportWizard…ctor(XPObjectSpace objectSpace, ITypeInfo typeInfo, ExcelImportWizardStringToPropertyMap propertyValueMapper) in D:\a\1\s\Xpand\Xpand.ExpressApp.Modules\ImportWizard.Win\Wizard\ExcelImportWizard.cs:line 59
at Xpand.ExpressApp.ImportWizard.Win.Controllers.ImportWizViewController.ShowWizard(IObjectSpace objectSpace) in D:\a\1\s\Xpand\Xpand.ExpressApp.Modules\ImportWizard.Win\Controllers\ImportWizViewController.cs:line 18
at Xpand.ExpressApp.ImportWizard.Controllers.ImportWizViewControllerBase.ImportAction_Execute(Object sender, SimpleActionExecuteEventArgs e)
at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)

Thanks!!

@apobekiaris
Copy link
Member

There is no Blazor equivalent, however there is an ExcelImporter.Win package that may work better

@AndresVanegasC
Copy link
Author

AndresVanegasC commented Sep 14, 2022

Hi!

Thank you for your prompt response, we have correctly implemented in WIN what you suggest "ExcelImporter"; but we tried to run in XAFBlazor and encountered the following error when clicking on new.

image

image

What can we do there, or are we missing something?

Sample project attached.
TestImportWizard.zip

attached bug
ErrorXafBlazor.txt

here you can download the 2 files, if the previous ones are not functional.

https://drive.google.com/drive/folders/10uxX7J69m_GPGMoQDGgjJZXwJxjMPvim?usp=sharing

Thanks!!

@AndresVanegasC
Copy link
Author

Hello!

Do you have any comments or is there somewhere a step by step or example where I can see how to correctly implement the "ExcelImporter" for Xaf Blazor?

either

Is there nothing we can do to implement it for Xaf Blazor?

Thank you, I am very attentive.

@apobekiaris
Copy link
Member

apobekiaris commented Sep 19, 2022

there is no Blazor counterpart

Find-XpandPackage *Excel*

Id                      Version    Source
--                      -------    ------
eXpandExcelImporter.Web 22.1.401.0 Release
eXpandExcelImporter     22.1.401.0 Release
eXpandExcelImporter.Win 22.1.401.0 Release

ti implement it your self you have to look whats on the Win,Web sides and do the same with Blazor.

@apobekiaris apobekiaris removed their assignment Oct 19, 2022
@quangbkl
Copy link

Hi!

Thank you for your prompt response, we have correctly implemented in WIN what you suggest "ExcelImporter"; but we tried to run in XAFBlazor and encountered the following error when clicking on new.

image

image

What can we do there, or are we missing something?

Sample project attached. TestImportWizard.zip

attached bug ErrorXafBlazor.txt

here you can download the 2 files, if the previous ones are not functional.

https://drive.google.com/drive/folders/10uxX7J69m_GPGMoQDGgjJZXwJxjMPvim?usp=sharing

Thanks!!

I also had the same problem as you. Have you solved it yet?

@DannyRawlings
Copy link

The issue with running in blazor relates to the progressbarviewitem. Since no Progress exists within Devexpress Blazor, it will not run.

@expand expand closed this as completed Feb 24, 2024
@expand
Copy link
Member

expand commented Feb 24, 2024

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants