Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NET WordתΪPDF

1¡¢Ê×ÏȰ²×° Microsoft Office 2007¼ÓÔØÏMicrosoft Save as PDF-¼òÌåÖÐÎİ棺ÏÂÔØµØÖ·£º
http://download.microsoft.com/download/3/8/8/388812b2-0d3f-474e-a7ef-b095d3d0d3cd/SaveAsPDF.exe
2¡¢Ð½¨ÍøÕ¾ÏîÄ¿£¬Ìí¼ÓMicrosoft.Office.Interop.WordµÄÒýÓÃ
3¡¢´úÂ룺
/// <summary>
/// ת»»wordΪpdf
/// </summary>
/// <param name="filename">docÎļþ·¾¶</param>
/// <param name="savefilename">pdf±£´æÂ·¾¶</param>
private void ConvertWordPDF1(object filename, object savefilename)
{
Object Nothing = System.Reflection.Missing.Value;
//´´½¨Ò»¸öÃûΪWordAppµÄ×é¼þ¶ÔÏó
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
//´´½¨Ò»¸öÃûΪWordDocµÄÎĵµ¶ÔÏó²¢´ò¿ª
Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Open(ref filename, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);
//ÉèÖñ£´æµÄ¸ñʽ
object filefarmat = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF;
//±£´æÎªPDF
doc.SaveAs(ref savefilename, ref filefarmat, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing, ref Nothing);
//¹Ø±ÕÎĵµ¶ÔÏó
doc.Close(ref Nothing, ref Nothing, ref Nothing);
//ÍÆ³ö×齨
wordApp.Quit(ref Nothing, ref Nothing, ref Nothing);
}
object filefarmat = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF;//ÉèÖñ£´æµÄ¸ñʽ£¬»¹¿ÉÒÔΪÒÔϸñʽ£º
Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatHTML  //±£´æÎªHTML
Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatRTF     //±£´æÎªRTF
Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatText    //±£´æÎªÎı¾
Micros


Ïà¹ØÎĵµ£º

ASP.NETÖÐGridViewÉè¼Æ»ã×Ü

RowÄÚÕÒLabel¿Ø¼þ
//ÄÚ²¿¿Ø¼þʼþ
protected void LinkButton11_Click1(object sender, EventArgs e)
        {
            //ɾ³ý¶ÔÓ¦µÄÊÂÎñ
            int ......

40ÌõASP.NET¿ª·¢Tip

»¶Ó­ÅÄש£¬¹²Í¬½ø²½£¡£¡£¡
1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
 
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Transfer´úÌæResponse.Redirect¡£
3¡¢Ê¹ÓÃValidator¿Ø¼þ£¬ÇëÒª¾­³£¼ì²éPage.IsValid¡£
4¡¢ÇëʹÓÃforeachÑ­»·£¬¶ø²»ÊÇΪ×Ö·û´®µü´úÑ­»·¡£
5¡¢ÇëʹÓÿͻ§¶ËÑéÖ¤ ......

ASP.NETѧϰ——µ¼º½ÌõÉè¼Æ·½°¸

2.4 µ¼º½ÌõÉè¼Æ·½°¸
Ò»¸öWebÕ¾µã£¬ÓÈÆäÊÇÐÅÏ¢Á¿´óµÄ´óÖÐÐÍWebÕ¾µã£¬Ó¦ÎªÓû§Ìṩվµãµ¼º½¡£Õ¾µãµ¼º½ÊÇÿ¸öÍøÕ¾±Ø²»¿ÉÉٵģ¬ËüÏ൱ÓÚ³ÇÊй«Â·µÄ·±ê¡£Í¨¹ýµ¼º½ÌõÉè¼Æ·½°¸£¬¿ÉÒÔÊ¹ÍøÕ¾ä¯ÀÀÕßÕÒµ½×Ô¼ºÏëÒªµÄÄÚÈÝ¡£
2.4.1 Ê÷Ð͵¼º½ÌõÉè¼Æ·½°¸
Ê÷Ð͵¼º½ÌõÉè¼ÆÖ÷ÒªÓ¦ÓÃTreeView¿Ø¼þ£¬TreeView¿Ø¼þ¶ÔÊý¾ÝÓÐ×ÅÁ¼ºÃµÄÖ§³Ö£¬Í¨¹ýÏÔ ......

asp.netʹÓþ«ÁéÄ«ÁÖÌáʾÕÒ²»µ½Ö¸¶¨Ä£¿é

´°Ìå´úÂë:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AgentObjects;
using SpeechLib;
using System.Web;
using System.Threading;
using System.Text.RegularExpressio ......

ASP.NETÖеÄFormsºÍWindows»ìºÏÑéÖ¤

±¾ÎÄ·­Òë×Ô£ºMixing Forms and Windows Security in ASP.NET
ÕªÒª£ºASP.NET¿ª·¢ÈËÔ±Ôø¾­Îʵ½¹ýÈçºÎʹÓÃFormsºÍWindows»ìºÏÑéÖ¤¡£Paul WilsonÌṩÁËÒ»¸ö½â¾ö·½°¸À´»ñµÃWindowsÓû§Ãû£¬»òÕߣ¬½«Óû§×ªÏòµÇÂ¼Ò³Ãæ¡£
¼ò½é
ÎÒÔø¾­Óöµ½ºÜ¶àASP.NET¿ª·¢ÈËÔ±Îʵ½ÈçºÎʹÓÃFormsºÍWindows»ìºÏÑéÖ¤¡£Í¨³£µÄ»Ø´ðÊÇ£º“ASP.NET²» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ