O7: Print a linked file from Omnis

Geir Fjærli omnis at sunshinedata.com
Tue May 27 06:34:59 EDT 2008


Hi all.

Last year I got help from the list on creating a function in a customer app
where they could link to files and URLS from within the application, and
then open them in the "native" program using Register DLL and Call DLL:

Register DLL ("shell32.dll";"ShellExecuteA";"JJCCCCJ") 
Call DLL ("shell32.dll";"ShellExecuteA";0;"open";pURI;" ";" ";1)

This works great. Now they are requesting added functionality: They want to
click a print button in the Omnis 7 app and have the print operation start
without first opening the native program and then selecting print.

So the question is: Is there a system call that will do this? I assume there
is, since I can rightclick a document in Windows and say print.

Any hints from the ShellExecute gurus is most welcome.

Geir :)




More information about the omnisdev-en mailing list