On Thu, Nov 8, 2012 at 2:21 PM, Aman Sharma <kajubadam25...@gmail.com>wrote:
> There is no physical aspx/mvc file exists. There is a method in a class > which gets html as a string and then we converts that html into byte and > then dump into ABCPDF ( a pdf tool ). If I could execute that html string > before converting it to byte will solve my issue. > > On Fri, Nov 9, 2012 at 1:45 AM, Stephen Russell <srussell...@gmail.com>wrote: > >> >> On Thu, Nov 8, 2012 at 2:00 PM, Aman Sharma <kajubadam25...@gmail.com>wrote: >> >>> Hi, >>> >>> In ASP.Net 4.0, is it possible to execute html on the fly?? >>> Scenario is, I have HTML in a string which I need to dump into ABCPDF >>> for PDF generation. If I directly dump html into ABCPDF, some styles get >>> messed up. >>> It would be working fine if I could execute this html and could keep in >>> memory stream and then dump into ABCPDF. In MVC I did it by partial view >>> but dont know how to handle it in aspx page. I know we can create physical >>> page and using Server.Execute we can get HTML but I don't want any physical >>> file. What I want is.. could execute html which is in string variable so >>> that I could dump output in ABCPDF. >>> >> >> ------------------- >>> >>> <%@ ABCPDF = MyFunctionHere() %> >> >> ---------------------- Then you need to use something like the .Load() for ABCPDF then. <%@ ABCPDF.Load( MyFunctionToGenTheHTML() %> HTH -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to dotnetdevelopment@googlegroups.com To unsubscribe from this group, send email to dotnetdevelopment+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net