I am using PDFSharp in my project. I need to open a modal after it saves the document. The function to open the modal is in a Angular controller. How would I do this?
WebApi Controller
// 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;
Function to open Modal
$scope.PrintPreviewModal = function () {
$ekathuwa.modal({
id: "PrintPreviewModal", contentStyle: "width:800px;heigth:400px",
scope: $scope,
templateURL: "ModalPrintPreview"
});
}