- namespace Spread_Web_V12
- {
- public partial class WebForm2 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (this.IsPostBack) return;
- FpSpread1.Open(@"C:\Users\PBD\Desktop\aa (3).xml");
- string jl = FpSpread1.Sheets[0].Cells[19, 1].Text;
- jl = jl.Replace(" ", " ");
- var ct = new FarPoint.Web.Spread.TextCellType();
- ct.AllowWrap = true;
- FpSpread1.Sheets[0].Cells[19, 1].CellType = ct;
- FpSpread1.Sheets[0].Cells[19, 1].Text = jl;
- FpSpread1.SavePdf(@"C:\Users\PBD\Desktop\aaa.pdf");
- }
- }
- }
复制代码
|