Bruce,
Thanks for the help so far. I have accepted that we will not be able to print directly to a printer on the local machine. Opening the PDF in a browser is a good solution and I have that working now.
I still can't get the "ServeDocument" technique to work for me, so for now I'm using Javascript to open a new browser tab with the PDF. Here is a sample of my code:
Do CreatePDF !!runs routine to fill pdf with data
myURL = '
https://tumoroid.breasthealthcrisp.org/reports/'&Clip(myFileName)&''''
myURL = ''''&myURL
myScript = 'window.open('&Clip(myURL)&', ''_blank'');'
p_web.script(myScript, 1)
This works very well. However, I would still like to get the ServeDocument method to work. I think I have all the pieces of the puzzle, but not sure how to put it all together just yet.
Now on to the Seiko Label printer. Writing directly to it will not work. The SDK does have a method for a "virtual printer driver", which creates an image of the label and copies this to the clipboard. I think I might be able to grab this locally and print to the label printer.
Another thought is to create a locally running app that contains a web service. The web service could poll the data and download info for the label printer. I want to print the labels just after a PDF form is printed. I think this is going to be a challenge! Anyone have any other suggestions for this phase of the project?
Thanks,
Jeff King