PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 5:14 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Jul 03, 2019 9:05 pm 
Offline

Joined: Fri May 03, 2019 10:10 pm
Posts: 21
I have nearly completed my project and I have 2 problems
1) The adobe reader window opens behind the forms in my program. Is there a way to get it to open TopMost like I can in VB.

2) If Adobe is open and you click the print button again, the program freezes. Is there a way to prevent this?


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 04, 2019 7:03 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
Hi!

Welcome to the PDFsharp forum.

Maybe someone can help with your Adobe Reader questions.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 15, 2019 7:15 pm 
Offline

Joined: Fri May 03, 2019 10:10 pm
Posts: 21
I thought of a way to make sure that the windows form does not overlay the Adobe Acrobat window:
I added after the Process.Start command, a form close command [close()].
This still has the risk that a user may forget to close the adobe reader, which will clrash the program. :cry:


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 18, 2019 12:20 pm 
Offline

Joined: Fri May 03, 2019 10:10 pm
Posts: 21
The exception states that the filename is being used by another process, in other words the verse.pdf file is still open in Acrobat.
Tried a couple of things:
1) Tried a For Next loop to add a number to the verse.pdf, but the loop iterated all the range before opening the Acrobat reader, even though I put the next before the Close command.
2) Tried Exit Sub but still had an open process.

In the FPDF that I use on my website it automatically updates the filename with e.g. verse(1).pdf.

Any other ideas on how to eliminate this problem


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 148 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group