This project is read-only.
1
Vote

Templates with Images in the Header

description

I created a template to manipulate in ExtremeML it works great it’s much easier than just using DocumentFormat assemblies. But I have a huge problem now. My client wants Images in the header and footer. I know how to create a document in OpenXML that has an image in the header and footer but. When I try to open the template with ExtremeXML it doesn’t import the template with the images and I get and xml error when I open the output stream in Excel.
 
Attached is a zip of the template and what happens when I just run the standard tutorial command.
 
public void CreateWorkbook(String template,String outfile)
    {

        using (var templateStream = new FileStream(template, FileMode.Open, FileAccess.Read))
        using (var outputStream = new FileStream(outfile, FileMode.Create, FileAccess.Write))
        using (var package = SpreadsheetDocumentWrapper.Open(templateStream, outputStream))
        {
            // Code here to populate the new workbook

        }

file attachments

comments