I'm attempting to convert HTML to PDF from vb.net I'm using the following code, which I found in another thread (modified slightly)
dim content as string = "<b>Hello World!</b>"
dim conv as new CuteEditor.Convertor.PDF.HTML2PDF(content)
dim s as new IO.MemoryStream()
conv.RenderSinglePageContent = False
conv.Render()
conv.Save(s)
s.Position = 0
I think attach this to an email and fire it off.
I'm getting the error on conv.Render()
the error I get is:
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: System.Security.Permissions.SecurityPermission
Any ideas?