asp.net结合flashpaper实现doc/pdf/ppt文档在线浏览

try  
{   
    string flashPrinter = ConfigurationManager.AppSettings["FlashPaperPath"].ToString();   
    string _oldFilePath = MapPath(txtFilePath.Text.Trim());   
    string _swfFilePath = MapPath(txtFilePath.Text.Trim().Replace(BaseLib.GetFileExt(txtFilePath.Text.Trim()), ".swf"));   
    System.Diagnostics.Process pss = new System.Diagnostics.Process();   
    pss.StartInfo.CreateNoWindow = false;   
    pss.StartInfo.FileName = flashPrinter;   
    pss.StartInfo.Arguments = string.Format("{0} {1} -o {2}", flashPrinter, _oldFilePath, _swfFilePath);   
    pss.Start();   
    while (!pss.HasExited)   
    {   
        continue;   
    }   
    lblView.Text = "成功!";      
}   
catch (Exception ex)   
{   
    lblView.Text = ex.ToString();   
}