将Ascx文件转换为PDF文件 [英] Convert Ascx file to PDF file

查看:103
本文介绍了将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


这篇关于将Ascx文件转换为PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆