Created Frame with UWP to print badge, when performing Print for the first time It was working fine. then trying to print for another badge for other user It was giving error.
Below code is written in side :
protected override void OnNavigatedTo(NavigationEventArgs e)
{
printDoc = new PrintDocument();
printDocSource = printDoc.DocumentSource;
printDoc.Paginate += Paginate;
printDoc.GetPreviewPage += GetPreviewPage;
printDoc.AddPages += AddPages;
// Register for PrintTaskRequested event
printMan = PrintManager.GetForCurrentView();
printMan.PrintTaskRequested += PrintTaskRequested;
}
Tried with How to disconnect print event handler in uwp printing? still facing the same issue.