DownloadFileFromData

Method : Post

Interface Function

Creating a word/excel/pdf file according to the input argument "Data" and the document template which code is "TemplateCode", and return the file stream to client.

Request Parameter
Parameter Required Type Remarks
Data Yes Dictionary The data that should be filled into the document template
TemplateCode Yes String Word/Excel file template code
TransferPdf No Bool true:the generated file format is PDF;
false:the generated file format is same with the corresponding template's file format;
FileName No String Generated file name, if it's null, it will be assigned by the value of the file name of the corresponding template.
Return Data Type

Stream: the binary stream.

Input Sample
{
    "TemplateCode" : "ABC",
    "FileName": "report information",
    "TransferPdf": true,
    "Data": {
        "A" : "A",
        "B" : 2,
        "C" : true,
    }
}
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2023-02-02 10:40:12

results matching ""

    No results matching ""