在我的控制器中,我正在渲染一个视图。
我的Action方法如下所示:
public ActionResult SomePrint(Model model)
{
//Some business action
return View("viewname",model);
}
现在,我的要求是在我的解决方案中将此视图另存为文件(可能是pdf文件),并在打印完成后将其发送以打印和删除文件。
尝试使用Rotativa并将其转换为pdf,方法如下
public ActionResult DownloadViewPDF()
{
var model = new Genera
我遵循pdf Dart软件包,它展示了如何保存PDF文件:
// On Flutter, use the [path_provider](https://pub.dev/packages/path_provider) library:
// final output = await getTemporaryDirectory();
// final file = File("${output.path}/example.pdf");
final file = File("example.pdf");
await file.writeAsBytes(awa
我试图将Outlook文件夹中的所有邮件项保存为PDF格式。
Sub pdfConversion()
Dim outApp As Object, objOutlook As Object, objFolder As Object, myItems As Object, myItem As Object
Dim psName As String, pdfName As String
Set outApp = CreateObject("Outlook.Application")
Set objOutlook = outApp.GetNamespa