ExportTextInputFormFieldAsText

HtmlSaveOptions.ExportTextInputFormFieldAsText property

يتحكم في كيفية حفظ حقول نموذج إدخال النص في HTML أو MHTML. القيمة الافتراضية هيخطأ شنيع .

public bool ExportTextInputFormFieldAsText { get; set; }

ملاحظات

عند التعيين علىحقيقي ، يصدر حقول نموذج إدخال النص كنص عادي. متىخطأ شنيع، يقوم بتصدير حقول نموذج إدخال نص Word كعناصر INPUT في HTML.

عند التصدير إلى EPUB، يتم دائمًا حفظ حقول نموذج إدخال النص كنص بسبب لمتطلبات هذا التنسيق.

أمثلة

يوضح كيفية تحديد المجلد لتخزين الصور المرتبطة بعد حفظها في .html.

Document doc = new Document(MyDir + "Rendering.docx");

string imagesDir = Path.Combine(ArtifactsDir, "SaveHtmlWithOptions");

if (Directory.Exists(imagesDir))
    Directory.Delete(imagesDir, true);

Directory.CreateDirectory(imagesDir);

// قم بتعيين خيار لتصدير حقول النموذج كنص عادي بدلاً من عناصر إدخال HTML.
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html)
{
    ExportTextInputFormFieldAsText = true, 
    ImagesFolder = imagesDir
};

doc.Save(ArtifactsDir + "HtmlSaveOptions.SaveHtmlWithOptions.html", options);

أنظر أيضا