Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Attempts made to print a pdf seen in Webviewer

Featured Replies

This goes along with some of my other posts. The application I am working on produces a book. In that book references to PDFs or the PDFs themselves are stored in container fields. Recently I am favoring just storing the references based on being able to obtain the path to the PDF in question.

Here is the problem: I want to print this book. That is the whole purpose of my applications development. The portion of the book developed in FMP is a no brainer to get it to print in sequence. But then I get to these areas where parts of the book have been developed in other programs with the information saved externally as a PDF and I want to reach out to those PDFs and print them in the mix of the rest of the documentation. I have tried SEND EVENT using a calculated path to the PDF, specified to "pdoc" or "print document", which comes up useless and prints a blank page. (It works when I just go into the file reference page and spec a literal file path - when you do this, the "file type" window seems to know what kind of document its going after and it works). I have also toyed around with various SEND DDE commands.

All I want to do is reach outside filemaker in the midst of a print routine, and have it print a PDF into my stack of documents, thats really it. Can anyone help...what am I doing wrong?

Just a thought but maybe you can use a a command line or VB script and call it from FM.

  • Author

Ok, Im open for that, but where do you plug in the VB script in FMP?

  • Author

For newbies reading this...Im answering my own question - You plug in VB Script using "Send Event" from a Script. Most of the solutions I have developed never had to jump outside Filemaker, so that was new to me, I just picked that up after researching the previous suggestion...FYI for anyone reading this.

have tried SEND EVENT using a calculated path to the PDF, specified to "pdoc" or "print document", which comes up useless and prints a blank page

... works for me.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.