I am running the following code. The presentation file created by using this code is a 0 by PPTX file with no slides.
I would expect a single slide presentation with HELLO WORLD written in it.
My end goal is to create a presentation with a far more complex slide in it, but with this very basic example not working correctly I need help before I can move forward.
[TestMethod]
public void Basic_HTML()
{
using (Presentation p = new Presentation())
{
string root = System.IO.Directory.GetCurrentDirectory();
p.Slides.AddFromHtml("<html><body><h1>hello</h1></body></html>");
p.Save($"{root}\\Samples\\basic_html.pptx", SaveFormat.Pptx);
}
}