Problems with HTML generation

Nov 23, 2010 at 5:41 PM

I've not yet managed to get any code at all to generate HTML-derived images that include text - including the RSS example code.

Here's my latest code:

            HtmlImageCreationSourceFilter sourceFilter1 = new HtmlImageCreationSourceFilter(source);
            sourceFilter1.HtmlTemplate = "<html><body style='background-color:{Color}; color:white;padding:10;margin:0;'><h1>{name}</h1><p>{description}</p></body></html>";
            sourceFilter1.Width = 600;
            sourceFilter1.Height = 600;

Where "Color" is one of my Facets.

What I see as output is colo(u)red squares with no text.

I've stepped through the code and the HTML gen is fine... so the only thing I can think of is that maybe this is something to do with IE9?

Any ideas?