public PdfView(PdfViewModel viewModel) { InitializeComponent(); this.DataContext = viewModel; string Exepath = System.Reflection.Assembly.GetExecutingAssembly().Location; string Directory = System.IO.Path.GetDirectoryName(Exepath); string Path = Directory + "\\Payslip.pdf" webBrowser1.Navigate(new System.Uri(Path)); if (System.IO.File.Exists(Path)) { File.Delete(Path); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)