eXpand icon indicating copy to clipboard operation
eXpand copied to clipboard

Import Wizard - XAF Win and XAF BLAZOR Net Core 6

Open AndresVanegasC opened this issue 3 years ago โ€ข 4 comments

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!!

AndresVanegasC avatar Sep 13 '22 23:09 AndresVanegasC

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

apobekiaris avatar Sep 14 '22 05:09 apobekiaris

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 avatar Sep 14 '22 14:09 AndresVanegasC

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.

AndresVanegasC avatar Sep 19 '22 13:09 AndresVanegasC

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 avatar Sep 19 '22 13:09 apobekiaris

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?

quangbkl avatar Mar 10 '23 16:03 quangbkl

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

DannyRawlings avatar Sep 28 '23 15:09 DannyRawlings

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

.Thank you for your contribution.

expand avatar Feb 24 '24 21:02 expand