【发布时间】:2014-11-14 06:15:29
【问题描述】:
我在我的项目中使用 PDFSharp。我需要在保存文档后打开一个模式。打开模式的功能在 Angular 控制器中。我该怎么做?
WebApi 控制器
// Save the document...
const string filename = @"C:\Users\texas_000\Desktop\TexasExterior\TexasExterior\JobSetupPdfs\HelloWorld.pdf";
document.Save(filename);
// ...and start a viewer.
// Process.Start(filename);
}
catch (Exception ex)
{
Debug.Print(ex.ToString());
}
return string.Empty;
打开Modal的功能
$scope.PrintPreviewModal = function () {
$ekathuwa.modal({
id: "PrintPreviewModal", contentStyle: "width:800px;heigth:400px",
scope: $scope,
templateURL: "ModalPrintPreview"
});
}
【问题讨论】:
标签: angularjs model-view-controller asp.net-web-api