PDF Export Acro Fields set name

Stimulsoft Reports.NET discussion
Post Reply
dominikz
Posts: 1
Joined: Thu Mar 02, 2023 1:52 pm

PDF Export Acro Fields set name

Post by dominikz »

Hey,

im trying to export my report with some textfields as acro fields in pdf wihtin a asp.net core environment.
Each of my textfields has set a name / alias / global name, but when the pdf is exported, the field names look like auto generated (Field0, Field1, Field2).

I tried to set some settings like this:

Code: Select all

// Render report and catch output
var rendered = await context.Report.RenderAsync();
var export = new MemoryStream();
StiOptions.Export.Pdf.UseEditableFieldName = true;
StiOptions.Export.Pdf.UseEditableFieldAlias = true;
StiOptions.Export.Pdf.UseEditableFieldTag = true;
await rendered.ExportDocumentAsync(request.OutputFormat, export, new StiPdfExportSettings()
{
	AllowEditable = StiPdfAllowEditable.Yes,
});
So this:
Image

Turns into this:
Image

But i want to keep my name set in the editor (ADF...)
Does anyone had the same issue?
Attachments
sc_report.PNG
sc_report.PNG (45.71 KiB) Viewed 831 times
sc_pdf.PNG
sc_pdf.PNG (12.17 KiB) Viewed 831 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: PDF Export Acro Fields set name

Post by Lech Kulikowski »

Hello,

Please try to set the name in the Tag (Interaction) property.

Thank you.
Post Reply