How can I load .ascx user control from console application or windows service?

Posted by creo on Stack Overflow See other posts from Stack Overflow or by creo
Published on 2010-04-19T14:23:48Z Indexed on 2010/04/19 14:43 UTC
Read the original article Hit count: 421

We use ascx user controls as templates for documents (e.g. invoices). Now I need to load,render to HTML, then transform to PDF these controls from windows service.

So, what's the correct way/workaround? TemplateControl.LoadControl(path) doesn't work.

© Stack Overflow or respective owner

Related posts about c#

Related posts about usercontrols