1
嗨, 我有一個大的html格式的文本。我想在頁面中顯示文本(如在MS Word中)。有沒有辦法做到這一點?使用asp.net和C的web應用程序中的按頁面文本呈現#
嗨, 我有一個大的html格式的文本。我想在頁面中顯示文本(如在MS Word中)。有沒有辦法做到這一點?使用asp.net和C的web應用程序中的按頁面文本呈現#
最好的辦法是用組件來渲染它在一個PDF(可以是ABCPdf from WebSuperGoo或其它溶液)
Doc theDoc = new Doc();
theDoc.Rect.Inset(72, 144);
theDoc.Page = theDoc.AddPage();
int theID;
theID = theDoc.AddImageUrl("http://www.yahoo.com/");
while (true) {
theDoc.FrameRect(); // add a black border
if (!theDoc.Chainable(theID))
break;
theDoc.Page = theDoc.AddPage();
theID = theDoc.AddImageToChain(theID);
}
for (int i = 1; i <= theDoc.PageCount; i++) {
theDoc.PageNumber = i;
theDoc.Flatten();
}
theDoc.Save(Server.MapPath("pagedhtml.pdf"));
theDoc.Clear();