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

Cell/region names #84

Open
TasosSarris opened this issue Jun 24, 2024 · 6 comments
Open

Cell/region names #84

TasosSarris opened this issue Jun 24, 2024 · 6 comments

Comments

@TasosSarris
Copy link

Hi
Can a name be defined for a cell or region?

@anmcgrath
Copy link
Owner

Not at the moment, named variables can only refer to values.

@ADefWebserver
Copy link
Contributor

@TasosSarris - I am curious, how would you use this?

@TasosSarris
Copy link
Author

I’m looking for a control that allows me to edit and view Microsoft Excel files. If I can name or tag specific cells, I can allow users to design forms under version control and, using the same control, create a viewer where other users can fill out these forms with values. The named cells will enable me to store these values in a table. In my previous Winforms application, I used the Grapecity Spread control for the same scope. Now, Blazor lacks something like this and I think that your control is very close to allowing scenarios like the above.
Thank you for your quick response

@anmcgrath
Copy link
Owner

Hi @TasosSarris that sounds like a reasonable thing to do. Have you managed to use this control to load/save excel files? I'd be interested in seeing an example if so.

There is the ability to set metadata to each cell, not sure if that would help in your situation. E.g

sheet.Cells.SetMetadata(row, col, name, value);
var metaData = sheet.Cells.GetMetadata(row, col, value);

Cell metadata currently isn't handled correctly when inserting/removing rows/columns but I'm going to fix that soon.

@TasosSarris
Copy link
Author

Thank you very much.
I have not yet done the import/export. I plan to do it during the next weeks. I will send you an example as soon as I manage it.

@timrobertsusa
Copy link

nice work-- keep going!

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

No branches or pull requests

4 participants