Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.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# 在Syncfusion的pdf查看器中包装cshtml的内容_C#_Asp.net_.net Core_Reporting_Syncfusion - Fatal编程技术网

C# 在Syncfusion的pdf查看器中包装cshtml的内容

C# 在Syncfusion的pdf查看器中包装cshtml的内容,c#,asp.net,.net-core,reporting,syncfusion,C#,Asp.net,.net Core,Reporting,Syncfusion,我如何将cshtml内容连接到ejs pdfviewer,我想将其用作和Vantage,以便能够打印我想要的内容,我已将其设置为带有syncfusion的pdfviewer,是否可能?” 我是否需要添加任何属性来启用此功能,或者是否有特殊的方法在syncfusion中实现此功能 以下是cshtml代码: 目前,PDF Viewer不支持直接显示cshtml页面。但是,我们可以将cshml转换为PDF,然后在PDF查看器中加载该PDF文档。我们已经为相同的产品创建了样品,并在以下位置共享 在上面

我如何将cshtml内容连接到ejs pdfviewer,我想将其用作和Vantage,以便能够打印我想要的内容,我已将其设置为带有syncfusion的pdfviewer,是否可能?”

我是否需要添加任何属性来启用此功能,或者是否有特殊的方法在syncfusion中实现此功能

以下是cshtml代码:


目前,PDF Viewer不支持直接显示cshtml页面。但是,我们可以将cshml转换为PDF,然后在PDF查看器中加载该PDF文档。我们已经为相同的产品创建了样品,并在以下位置共享

在上面的示例中,单击“ConvertToPDF”在PDF查看器中加载cshtml页面

PDF查看器: UG链接:

Html到PDF转换的参考链接: UG: KB: PDF.NET Framework的MVC视图:

注意:对于转换HTTPS站点,HTML转换器要求在进行转换的机器上安装OPENSSL库。请查找以下链接以供参考

问候,

拉姆亚T

  <ejs-pdfviewer id="container" style="height: 600px"
                   serviceUrl="/api/PdfViewer"
                   documentPath="@Path"

                   enablePrint="true">

    </ejs-pdfviewer>