How can I load a custom .ascx item from a console app or windows service?
I honestly don't know how to do this. However, if I'm stuck with this issue, I think I would download the ASP.NET MVC source and see what they do to render the partial view (a partial view in MVC is essentially a .ascx control). The method Render
to System.Web.Mvc.WebFormView
be a good starting place.
a source to share
You are probably wrong to be honest. Your library should probably be built into a library and then have a user control interface with that library. Then you can use this same logic to fill in values ββin a form or similar.
You will likely run into a lot of problems trying to load a control and deal with things that don't exist outside of ASP.Net, such as session variables and viewstate.
Basically what you are asking for is a report that is processed by something like Crystal Reports or SQL Server Reporting Services.
a source to share