Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The system cannot find the file specefied #50

Open
Qurishe opened this issue May 26, 2023 · 1 comment
Open

The system cannot find the file specefied #50

Qurishe opened this issue May 26, 2023 · 1 comment

Comments

@Qurishe
Copy link

Qurishe commented May 26, 2023

@svishnevsky i am using PDFtoPrinter v1.5.0 in my UWP application and it throws the error: The system cannot find the file specified.
at first i suspected that it may be because UWP doesn't have full access to the file system and i placed my pdf file in UWP LocalState folder which by default UWP application has access to, but still it throws the same error. since it prints using path, i am unable to provide the file.

Here is my piece of code for printing PDF file:

public async Task PrintPDF()
{
StorageFolder temp = ApplicationData.Current.TemporaryFolder;
string printerName = "EPOS8080";
string filePath = temp + "\report.pdf";
var printer = new PDFtoPrinterPrinter();
await printer.Print(new PrintingOptions(printerName, filePath));
return filePath;
}

@LeoLedesma
Copy link

Hi, I'm having the same problem. Were you able to figure it out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants