Click here to Skip to main content
16,017,852 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

Please tell me how to convert ascx text file to PDF when the PDF button is clicked.

Please help me on the above.

PAGE TO CHANGE TO PDF :
XML
<td align="right" style="padding-right: 5px">
              <asp:ImageButton ID="ibExportToPdfPrint" runat="server" ImageUrl="~/Picture/ExportToPdf.gif"
                  OnClientClick="Show all" />
          </td>

quot;
OnClientClick="Show all" /> </td>
XML
<p style="font-size: 12px;">
               The purpose of this policy is to assure survey participants that their school's
               data with be used with respect and understanding within a limited group of decision-makers
               at other schools. Schools are more likely to share information with such an understanding.
           </p>
           <p style="font-size: 12px;">
               Schools may use averages in the survey results (which blend the data of at least
               several schools, and which do not identify the specific data of another individual
               school) with other persons within its school community.
           </p>
           <p style="font-size: 12px;">
               With the exception of admissions statistics, the results will show the data of individual
               schools. Results for the three admissions data points (applications, accepts, and
               yield) will be shown in only aggregated averages and percentiles because of the
               sensitivity of the information. Most of the other information in the survey is in
               the public domain with the Form 990 or the public filing requirements of issuing
               tax-exempt debt.
           </p>






Regards,
Asee
Posted
Updated 1-Jul-13 2:18am
v2
Comments
Prasad Khandekar 1-Jul-13 8:27am    
Hello,

Please have a look at following articles.
1. http://www.codeproject.com/Articles/5872/Pdfizer-a-dumb-HTML-to-PDF-converter-in-Csharp
2. http://www.codeproject.com/Tips/280882/Convert-text-into-PDF-using-ASP-NET-and-Csharp
3. http://www.codeproject.com/Articles/20640/Creating-PDF-Documents-in-ASP-NET

Regards,
Sergey Alexandrovich Kryukov 1-Jul-13 8:30am    
ASP.NET? Tag it. ASCX is a user control; it does not exist on the client side...
—SA

1 solution

The question makes no sense, just because ASCX files don't exist on client side (the only side where you can press a "PDF" button). All ASP.NET artifacts are translated into normal resources rendered by a browser (or not, then saved on client side), such as HTML (or anything else). It happens in a HTTP response and controlled on the server side by code behind, in response to HTTP request. I suspect this question is based on lack of understanding of how Web works. Please learn it first, to come to understanding of what you really want.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900