Hello forum,
I was taught how to convert HTML to PDF with image rendered and it works. But I tried to put it in another web form where I have two gridviews on one form and it is giving me issue.
I really don’t know why my receipt does not convert to PDF.
I have a web form where I have two <col> tags. In the <col> tags, there are two gridviews (gridview1 and Gridview2). Gridview1 is used to input data into table while Gridview is used to display the data from table on the page. I placed label controls and Gridview2 in the second <col> tag to display records. I also have a button to convert the contents of the second <col> tag to PDF for printing but I get an error which says
“Exception Details: System.Web.HttpException: Control 'Gridview2' of type 'GridView' must be placed inside a form tag with runat=server.”