private void DoExport(object obj)
        {
            //Process.Start(filename);
            MemoryStream memoryStream = _pdfCreatorService.CreatePdfMemoryStream(CalculationInput, CalculationOutput);

            _saveAndLoad.SaveAndCreatePdfAsync("ArcFlashEstimateReport.pdf", memoryStream);
            // ...and start a viewer.
            Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\ArcFlashEstimateReport.pdf");
        }
Ejemplo n.º 2
0
        private async void Export()
        {
            var action = await _dialogService.DisplayActionSheetAsync("Export Results", "Cancel", null, "Archive to BFS...", "Export PDF File...");

            switch (action)
            {
            case "Export PDF File...":
                MemoryStream memoryStream = _pdfCreator.CreatePdfMemoryStream(CalculationInput, CalculationOutput);
                await _saveAndLoad.SaveAndCreatePdfAsync("ArcFlashEstimateReport.pdf", memoryStream);

                await _navigationService.NavigateAsync("NavPage/PdfView", null, true);

                break;
            }
            Debug.WriteLine("Answer: " + action);
        }