logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
bandy  
#1 Posted : Friday, November 25, 2016 4:37:00 AM(UTC)
Quote
bandy

Rank: Newbie

Groups: Registered
Joined: 10/24/2016(UTC)
Posts: 4
Sweden
Location: Stockholm

Thanks: 1 times
Hi,

I have added an XAML instance of the PdfToolBarMain and bound it to my PdfViewer-control. This lets me open and view a PDF file without writing any code for the opendialog etc. However, I need the directory/filename of the PDF (from the open file dialog).

How do I get to this information?

I have not succeded to invoking the OnOpenClick-method (which I hoped could give me some clues).

Thanks.

Edited by user Friday, November 25, 2016 6:22:10 AM(UTC)  | Reason: Clarified/corrected my question.

bandy  
#2 Posted : Monday, November 28, 2016 2:07:15 PM(UTC)
Quote
bandy

Rank: Newbie

Groups: Registered
Joined: 10/24/2016(UTC)
Posts: 4
Sweden
Location: Stockholm

Thanks: 1 times
Update: After posting my question I have decided to just use the .NET common open file dialog and then pass the filename to the PdfViewer.LoadDocument-method.
Andry  
#3 Posted : Monday, November 28, 2016 3:56:02 PM(UTC)
Quote
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
That's the right decision.
Due to the fact that the document can be loaded not only from the file, but also from the stream, or byte array, there is no a standard way to determine the path to the document.
thanks 1 user thanked Guest for this useful post.
bandy on 11/29/2016(UTC)
Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.