question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extending field type list

See original GitHub issue

Hey, At the moment, I have struggles to add custom field codes because the enum does not contain the whole list of field codes, but only a subset: https://github.com/EvotecIT/OfficeIMO/blob/master/OfficeIMO.Word/WordField.cs#L10

E.g., could we add BIBLIOGRAPHY to it? See: https://support.microsoft.com/en-us/office/field-codes-bibliography-field-cbb17838-05d7-4533-8066-4791aeddb9de

Some field codes require switches, so how about passing a dictionary to AddField(...) as an optional argument?

Do you think that is doable? Do you prefer a PR or to do it yourself?

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
byteSamuraicommented, Nov 13, 2022

Let me put it this way: It’s refreshing to see a maintainer who is open to contributions. I saw exciting projects on Github, but the maintainers were very biased about their code quality. If you see a larger project w/o testing and the maintainer don’t wants to change anything because it’s so “well-crafted”, … don’t use it! However, I saw some magic strings/numbers in the parsing of the field codes. I am about to refactor this part at the moment. Looking forwarding hearing your opinion about it once I have done it. 💪🏻

0reactions
PrzemyslawKlyscommented, Nov 17, 2022

Hi,

  • I have Windows 11 with Visual Studio 2022 Enterprise
  • .NET Standard 2.0 and .NET Standard 2.1 is supported, and quite a lot of frameworks are supported - it’s windows,linux and maos so should work fine for you

image

It’s actually very useful for PowerShell where with one LIB you are able to support both PS 5.1 and PS 7 which is the main reason I created this project.

As you can see in the project there are 3 systems tested on Azure Devops - linux, windows, macos. As long as we retain tests for all supported frameworks on all supported systems we can adjust the settings to be runnable on all systems as required. Maybe it just needs some IF/ELSE in the configuration settings depending on OS version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Is it appropriate to extend List to add fields
This is purely a matter of opinion, but personally I would advise against extending classes like ArrayList in almost all circumstances, ...
Read more >
Extending a Field Type in Drupal 8
In this article, we'll walk through extending the core Entity Reference field type with a quantity textfield. Hopefully, this example will ...
Read more >
Extension Field Types
Field Type Default Value Calculated Field Text Yes Yes Amount Yes: Default value and default currency Yes Indicator Yes No
Read more >
Extending Sitecore Field Types
A step-by-step description of how to extend a Sitecore Field Type ... An example is the datasource of a List-Type where you may...
Read more >
Extend the Geolocation field type by using client-side ...
SharePoint introduces a new field type named Geolocation that enables you to annotate SharePoint lists with location information.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found