Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Feb 13, 2025 2:43 pm

Hi Support.

I have built a solution with spire.doc (.NET8 REST service) and have requested a trial license key. This key works perfectly when I tried to build a .Net console application, but now with a .NET8 REST service I have this problem.

The FIRST time I execute a call to my endpoint which performs word merge etc. everything is fine - but every subsequent call/execution the Evaluation mark is visible on the merged output document.

If this is only the case on my eval license this is off course no problem - but I am going to buy the license - but would like to know that this wouln't give me problems with the right license. (I am on a very tight schedule...)

Can you elaborate ?

My code:

MergeResultModel apiResult = new MergeResultModel();

Spire.Doc.License.LicenseProvider.SetLicenseKey("d/FeAQCVgJfvbbla bla bla");

var doc = new Spire.Doc.Document();

if (!String.IsNullOrEmpty(wordMergeModel.Filename))
doc.LoadFromFile(wordMergeModel.Filename);

foreach (var sectionValue in wordMergeModel.HeaderSectionValues)
{
replaceBookmarkWithString(doc, sectionValue.Bookmark, sectionValue.Value);
}

foreach (var detailSection in wordMergeModel.DetailSections) // Rows
{
int row = 0;

Section sec = doc.Sections[0];

TableRow bookmarkRow = null;

foreach (Bookmark bookmark in doc.Bookmarks)
{
if (bookmark.Name == detailSection.TableBookmark)
{
bookmarkRow = bookmark.BookmarkStart.Owner.Owner.Owner as TableRow;
}
}

// Fill table
Table table = bookmarkRow.Owner as Table;

TableRow rowClone = bookmarkRow.Clone();

int cell = 0;

foreach (var detailSectionValue in detailSection.DetailSectionValues) // Fields
{
var par = rowClone.Cells[cell].Paragraphs[0];
par.Text = detailSectionValue.Value;
cell++;

table.Rows.Add(rowClone);
}

table.Rows.RemoveAt(detailSection.DeleteTableRow); // delete bookmarked line which is just used for cloning.

doc.SaveToFile(wordMergeModel.OutputFilename);

doc.Close();

doc = null;

graver0206
 
Posts: 5
Joined: Sun Feb 09, 2025 2:33 pm

Fri Feb 14, 2025 2:17 am

Hello,

Thanks for your message.
We have checked your trial license and found that it has exceeded the limit of usable geographic locations.
In order for you to have a comprehensive testing, our sales colleagues have sent you a new OEM type license to email([email protected]). Please update and use this license for further testing. And you can learn more about our license types and usage from the following link.

https://www.e-iceblue.com/Buy/Spire.Office.html

If you have any other questions about purchasing, you can contact our [email protected].

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1383
Joined: Wed Apr 25, 2018 3:20 am

Fri Feb 14, 2025 6:12 am

Thanks, now it work perfectly :-)

I am planning to ask a customer to buy Spire.Doc for .Net Pro Developer Small Business - but I need to know how I can use your product without suddenly facing problems in the production system.

I normally develop my C# code on my laptop up to a certain point, then I transfer the code to my customers development server on which I also have Visual Studio deployed. Would that be a license violation on the "1 developer part" ?

Thanks again for your fast response

Best regards, Soeren.

graver0206
 
Posts: 5
Joined: Sun Feb 09, 2025 2:33 pm

Fri Feb 14, 2025 8:07 am

Hello,

Thank you for your feedback. Please note that the Developer Small Business license allows 1 developer and 1 deployment location (identified by a unique machine ID/MAC address) to use it. When the license is used on machines beyond this limit, it will not be effective, the output file will have the warning messages. Therefore, in your use, you need to ensure that the machine MAC address is fixed and the used number does not exceed the limit.
If you have any other questions, just feel free to contact.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1383
Joined: Wed Apr 25, 2018 3:20 am

Fri Feb 14, 2025 9:04 am

Thanks for your answer. I thought that location was meaning "one company"...

So if I for High Availability reasons need to have the same webservice deployed on two servers withing the same company and physical address - I will not be able to use the Small Business license version ?

Sincerely

graver0206
 
Posts: 5
Joined: Sun Feb 09, 2025 2:33 pm

Fri Feb 14, 2025 9:58 am

Hello,

Thank you for your feedback, sorry I'm not quite sure about how you distribute your .NET8 REST service, the Developer Small Business license type does not allow distribution of your custom applications to third parties, public-facing websites, or SaaS/PaaS/IaaS projects. If needed, you need to use the OEM type. If you still have any doubts, you can write directly to "[email protected]".
po.jpg


Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1383
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc