Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP

TOPIC:

WACK issue 7 years 4 months ago #11505

  • kumar88
  • kumar88's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 0
when i ran the windows app certification kit i got certain errors, i am attaching them, please see that.
Attachments:

Please Log in or Create an account to join the conversation.

WACK issue 7 years 4 months ago #11513

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Make sure that you are using the release builds with both projects, check the screenshot..

You can hit this error if your build runs the WACK tools against DEBUG builds as a custom step or you don’t have the .NET Native toolchain enabled for your RELEASE builds.

If you still have problems, can you send us more details about your configurations?
Attachments:

Please Log in or Create an account to join the conversation.

WACK issue 7 years 4 months ago #11530

  • kumar88
  • kumar88's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 0
Thanks a lot for the information nermeen, I want to know how do you refresh the loaded pdfviewer on canvas, i.e when I remove a page from file I need to refresh the view to preview the changes

Thanks.

Please Log in or Create an account to join the conversation.

WACK issue 7 years 4 months ago #11532

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
For such a modification You can do like the following:
m_doc.RemovePage(pageno);
m_view.vZoom(m_view.vGetScale());

For a smaller modification, like adding/deleting/editing an anootation you can use, m_view.vRenderAsync or m_view.vRenderSync

Please Log in or Create an account to join the conversation.

Last edit: by nermeen.

WACK issue 7 years 4 months ago #11533

  • kumar88
  • kumar88's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 0
I tried your suggestion but the issue is after the removal I need to scroll the pdf pages down & again up to see the changes , is there a way to reflect the change quickly (some thing like reloading...)?

Thanks

Please Log in or Create an account to join the conversation.

WACK issue 7 years 4 months ago #11544

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
m_doc.RemovePage(pageno);
m_view.vZoom(m_view.vGetScale());

The above code is working in the demo project, without the need to scroll..
To reload, you need to save the doc, close and then reopen...check the below code in PDFReaderPage.xaml.cs

m_doc.Save();
vClose();
OnNavigatedTo

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum