将Ascx文件转换为PDF文件
问题描述:
请点击单击PDF按钮,告诉我如何将ascx文本文件转换为PDF格式。
请帮我解决上述问题。
更改为PDF的页面:
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 :
<td align="right" style="padding-right: 5px">
<asp:ImageButton ID="ibExportToPdfPrint" runat="server" ImageUrl="~/Picture/ExportToPdf.gif"
OnClientClick="Show all" />
</td>
quot;
OnClientClick =全部显示/> < / td>
quot;
OnClientClick="Show all" /> </td>
<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>
问候,
Asee
Regards,
Asee
答
这个问题毫无意义,只是因为ASCX文件不存在客户端(唯一可以按PDF按钮的一侧)。所有ASP.NET工件都被转换为浏览器呈现的普通资源(或者不是,然后保存在客户端),例如HTML(或其他任何东西)。它发生在HTTP响应中,并在服务器端由后面的代码控制,以响应HTTP请求。我怀疑这个问题是基于对Web工作原理缺乏了解。请先了解它,了解你真正想要的东西。-SA
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