Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用asp.net和C实现web应用程序中的逐页文本渲染#_C#_Asp.net_Text Rendering - Fatal编程技术网

C# 使用asp.net和C实现web应用程序中的逐页文本渲染#

C# 使用asp.net和C实现web应用程序中的逐页文本渲染#,c#,asp.net,text-rendering,C#,Asp.net,Text Rendering,嗨, 我有一个大的html格式的文本。我想在页面中显示文本(如MS Word)。有什么方法可以做到这一点吗?最好的方法是将其呈现在带有组件的PDF中(可以是或其他解决方案) Doc theDoc=new Doc(); DOC.Rect.插图(72144); theDoc.Page=theDoc.AddPage(); int theID; theID=doc.AddImageUrl(“http://www.yahoo.com/"); while(true){ theDoc.FrameRect()

嗨,
我有一个大的html格式的文本。我想在页面中显示文本(如MS Word)。有什么方法可以做到这一点吗?

最好的方法是将其呈现在带有组件的PDF中(可以是或其他解决方案)

Doc theDoc=new Doc();
DOC.Rect.插图(72144);
theDoc.Page=theDoc.AddPage();
int theID;
theID=doc.AddImageUrl(“http://www.yahoo.com/"); 
while(true){
theDoc.FrameRect();//添加黑色边框
如果(!theDoc.Chaineable(theID))
打破
theDoc.Page=theDoc.AddPage();
theID=DOC.AddImageToChain(theID);
} 
对于(int i=1;i
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();