Invalid password pop up

Discussions about image processing and document imaging.
Post Reply
rhahn
Posts: 10
Joined: Fri Feb 18, 2011 1:27 am
Location: Edmonton Alberta Canada
Contact:

Invalid password pop up

Post by rhahn » Thu Jan 10, 2013 6:46 pm

Hi,
Is there a way to suppress the invalid password and The password supplied is incorrect pop up boxes when handling PdfPasswordRequest? I have a PW ring that I am using so that the user doesn't need to keep entering passwords. I am able to catch 202 and 201 state and retry but the popups keep coming.

We are using GdPicture Pro 5 - Imaging Toolkit

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Invalid password pop up

Post by Loïc » Tue Jan 15, 2013 1:34 pm

Hello,

Just turn the PdfShowDialogForPassword property to False.

With best regards,

Loïc

rhahn
Posts: 10
Joined: Fri Feb 18, 2011 1:27 am
Location: Edmonton Alberta Canada
Contact:

Re: Invalid password pop up

Post by rhahn » Tue Jan 15, 2013 5:29 pm

Yes it is and The event is being raised.

Inside
Private Sub GDImage_PdfPasswordRequest(Password As String)
Dim UserPW as string
UserPW = GetUserInput()
Password = UserPW
end sub

If Password = "" Then the control pops up "Invalid Password" Popup dialog GdPicturePro5
If Password is wrong PW then the control pops up "The Password Supplied is Incorrect." popup dialog GdPicturePro5

Is there another properties I am missing?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Invalid password pop up

Post by Loïc » Tue Jan 15, 2013 5:42 pm

Have you tried with SilentMode = True ?

rhahn
Posts: 10
Joined: Fri Feb 18, 2011 1:27 am
Location: Edmonton Alberta Canada
Contact:

Re: Invalid password pop up

Post by rhahn » Tue Jan 15, 2013 6:21 pm

That's the trick!
Thank you very much, Loïc

I've been programming with GD Picture for a few years now in vb6. I really enjoy using it and compared to other products it is much easier to use and better put together. Thanks

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Invalid password pop up

Post by Loïc » Tue Jan 15, 2013 6:30 pm

Perfect! Thank you for the return and for the feedback :)

Best,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests