Modifications to VB.NET PDF Viewer - vb.net

Okay, I know a question LIKE this has been asked before, but none of them covered this certain toolbar. After the top and left toolbars are hidden, this little black window shows up near the bottom of the screen which allows the user to print, save, zoom, etc. They can also even open the top and left toolbars back up by clicking the Adobe logo.
As you can see, at the top of my program I have a toolbar of my own. The way my program works is a user will input data, press the 'Create Report' button and this Report Viewer window will popup. When the user Creates a Report a .PDF file named preview.pdf is created and that's what the user opens up. If the user doesn't like the report he can hit the X to delete it, or if he likes it he can type a File Name and Press Save. Or he can skip the saving and just print it. When the user saves the file it goes to a place that the software can retrieve at a later time. If the user presses the save button on one of the Adobe toolbars he has the option to save it where they want to. I can't have that.
Does anybody know how to disable ALL Adobe toolbars in the .NET PDF Viewer? (And yes, I know that Pressing F8 will bring them back up).
Here's the code I have now:
pdf.src = "C:\Users\Ryan\Desktop\HelloWorld.pdf"
pdf.setShowToolbar(False)
pdf.setView("fitH")
pdf.setLayoutMode("SinglePage")
pdf.setShowScrollbars(False)
pdf.setZoom(68)
Here's a screenshot of the Windows Form:

Acrobat viewer has such switchable options.
this configuration switchs off all navigation:
view=FitH
scrollbar = 0
toolbar= 0
statusbar= 0
messages= 0
navpanes= 0

Related

Access application gets full screen on double click from taskbar button

I developed a tool in MS Access where I hide the top pane of Access so that user can only close the application by clicking close button on the pop up form. That leaves no way for the user to minimize or restore Access window as is required.
However, the problem comes when a user clicks the Acess button twice from the taskbar on windows 10, it gets into full screen mode and user cannot restore it unless by closing and reopening the application. Can someone please provide a solution to this?

How to link a certain/specific page on a PDF document to a certain word/number on a Word doc?

How would I link a specific page on a PDF document to a certain word/number on a word doc?
Please follow these steps:-
On the menu bar, select Tools > Advanced Editing > Link Tool.Your mouse cursor will change from the hand cursor ( ) to . Use this tool to click and drag, drawing a box around the text that you want to link.
Once you have completed drawing the box, release the mouse button. The Create Link dialog box will display.
Select the Open a page in this document option.
In the Page field, type in the page number of the page you want the link to jump to when clicked.
Note: Make sure you type in the actual page number of the page to which you want to link. You can determine the correct page number by going to the page you want to link to, and then look at the bottom of the Adobe Acrobat screen ( ) to see what page you're on.
Click OK to apply the settings or click Cancel to exit without applying the settings.
After clicking OK in the above steps, the box that you drew around the text to link will display in
red. You can adjust the width and height of the box if you need to by clicking and dragging each
side of the box. If you want to change the appearance of the link, go to the "Adjusting the
Appearance of the Link" section of this document.
I hope that helps!

PictureBox Missed In the .exe VB.net

I have A pictureBox in a form
I have declared a Picture box called Then
Field.Image = Image.FromFile("C:\Users\ABK\Desktop\Othello\field.png")
Field.Size = New System.Drawing.Size(483, 610)
Then I added the picbox to the form but when i copy the exr into another computer I don't see the picture
when I copy the exe into another computer I cannot see the picture
how can I include it in the exe file
Please try to keep the answers as simple as possible and demonstrate with examples
click on your form.
the properties tab should be on the bottom right
find image or background image and click on it
click the ... on the right side.
image as example of instructions above
a menu should show up.
Click import then select the file you want saved,
then press open it should go back to the menu,
select (none) to set your form image back to normal,
image as example of instructions above
then press ok,
go back to your code and change
Field.Image = Image.FromFile("C:\Users\ABK\Desktop\Othello\field.png")
to Field.Image = My.Resources.field
This should keep the image when you give it to your friend

Application hangs on clicking "Choose" button in IKPictureTaker view

I am facing a strange hang issue with IKPictureTaker and on clicking a "Choose" button. I am doing below operation using IKPictureTaker.
When a user wants to change a profile picture, upon clicking "Change Image" button, I display a IKPictureTaker view along with "Choose" button by setting IKPictureTakerAllowsFileChoosingKey to YES.
First time on clicking the "Choose" button, open panel will be displayed allowing user to select an image of his choice.
Next, on clicking the "Set" button, internally I am calling a profile picture upload function of a server in a separate thread and everything works great.
Next if the user tries to do the operation 1) and 2) again application hangs on clicking the "Choose" button.
After investigation I found that this issue is something to do with the background upload operation I am doing with the server.Because if I comment the upload part of code everything looks good.
I don't see any issues with the upload operation performed in the separate thread and it gives up it s runloop once it is done with its upload operation and all UI related operations again taken care in the main thread.
Application hangs only if I click on the "Choose" button. If I select the recent pictures or take a new photo using the camera everything works great.
Is there anyone who faced the same issue? Is it something to do with the NSOpenPanel displayed when we click on the "Choose" button?

Display Pop-Up in PDF when Clicked or Typed?

I have a collection of example documents in PDF forms that are viewed by clients, They all include a "Example" watermark prominently displayed but I have had some issues with clients trying to fill in the example forms and submitting as Official forms, normally followed by a support phone call from the client. I am looking for a way to pop up a message in the pdf if the client trys to type or click in the example document, I know how to pop up a message if they click in a form field but some of my documents do not have any form fields so I am looking for a way to show a message if a client trys to type or click anywhere in the actual document. I am using Acrobat X Pro.
Does anyone know of a way to do this?
Thanks in advance for any advice!!
Plop a big invisible button (not hidden, invisible) over the entire page, with a click action that pops up a message dialog with whatever warning you wish.