I have an application in Microsoft Access which sends forms as PDF files via DoCmd.SendObject to outlook. It works fine, but now, I want to add protection (restrict editing) for the PDF's to my program code. How can I do that because of the DoCmd.SendObject seems to have no options for doing that? The only protection I need is for editing the document and not for opening and printing pdf.
Related
I would like to create a means of overriding the default filename generated by Gmail when saving an email as a PDF file. I have a specific naming convention I use. It is tedious to manually modify the default filename each time I want to print an email to PDF.
I would like to create a script that does the following:
Within Gmail, I open an email I want to print to PDF.
I click a button or select a menu entry to initiate my print to PDF script.
The script opens the 'Save As' dialog and populates the filename field following my naming convention.
I then take over and interact with the 'Save As' dialog to save the file to the location of my choice.
I have done some initial research, but I am not confident this is going to be easy to accomplish. I would like some feedback from experts as to the feasibility of my project.
Thank you.
As far as I understand the question: you are not trying to interact at the Gmail web application level, but at the browser.
You can check for yourself when you use Gmail: before trying to save your attachment you can open the console (pressing F12) but as soon as you enter in a "save as" menu either you can't open it, or it will be dimmed.
This, again AFAIU, prevents you from acting even at the extension level, because you would not be able to press an extension button while the save dialog is open.
Unless you want to dig into the inner workings of your browser, I would recommend going the route of checking automation scripts for your operating system.
You could create a hot key on your pc that keys in the characters that respect your file format and, as soon as they are keyed in, you would then be able to modify the file name and press Enter.
I am creating an invoice tool within Google Sheets. The way it works is that after all the data is entered, a script is running, creating a sheet with the actual layed-out invoice.
I know that there is a way to automatically export sheets as PDF (by calling the document url with the "export?exportFormat=pdf" argument). But I don't want to export directly, I just need the "Print" dialog (File->Print) to pop up automatically so the user can adjust the settings before printing. (I know, it's not a big deal to press cmd+P yourself, but having the dialog open automatically would streamline the whole process a bit).
Is there any way to do that? I haven't found anything helpful within the documentation.
There isn't a way to do that with Google Apps Script services but you might do that by using client side code.
Related
JavaScript print preview
I would like the data that I enter into my excel file to update automatically in my web page. I would also like my web page to be customizable and not just a iframe of my excel file. How can I do it? :(
I want to styling embedded Google Drive form. So I create form at Google Drive, run it and copy source code from <form> to </form>. All looks good but when I select form values and click on submit button data sended to Google Drive spreadsheet are blank. If I use iframe that Google recommend all sended data is not blank. What I do wrong?
It sounds like you're viewing the source code from google drive, and copying that into an I-Frame on your own webpage. This won't work since that source code is offline, reserved for sending and receiving data from google only.
I recommend creating your own excel-like spreadsheet in your I-Frame. You may be able to use the same submit button if you configure it to send to your server.
If I were to embed a macro-enabled workbook on a web page, would the users be able to:
1) Run the macros and if so
2) Would the Macro run on the server or the user's machine?
Macros won't run. 2003 xls files with macros in them were unable to run in html format as well.