Quote:Re the option to use different programs to read the generated reports.......could we could have an option within Sesame to select the report rendering program or to select the file extension so we can keep our browser associated with HTML pages, but could associate another program for the report renderer? Perhaps this will be an option with INI files in Version 2?
That would seem to provide a wide range of flexibility.
Under Windows there is really no need. Windows keeps different file associations for each of the different "verbs". These are the menu items you see when right-clicking on a file, and include both "Open" and "Print". If you wish to keep your current preference for browser, but change the HTML print renderer, you would only change the "Print" verb.
I may well add it to the INI file for the operating systems that do not keep file associations.
There is already an environment variable: "SESAME_PRINT_COMMAND" that will override the default association in either Windows or Linux, when printing reports in Sesame. Simply set that variable to the command you prefer and Sesame will use it.
Quote:Thanks Mark for the list of alternatives that we can consider. How do we set the print rendering software for default?
Most of the packages will simply ask when they are installed if you want that package to be the default. In some case they will install as a print driver, in which case you tell them to be the default by going to Control Panel / Printers, and right clicking on that driver and select "Set as default printer" on the menu that appears.
If the package neither asks, nor is a print driver - Go to Control Panel and select "Folder Options". A dialog will appear. Select the "File Types" tab. Select HTM from the list of extensions. Press the "Advanced" button. Select "Print" from the list of "verbs" or actions. Select "Edit". A second dialog will appear. There is (in most cases) only one field that needs edited: "Application used to perform action". This field is simply a command line (like in the icon properties). Fill it in with the invocation for the program you prefer.
Quote:You provided some code, but how/where is this executed?
That code was the invocation code for MSWord to cause to it to load a file (any of the file types it supports) print it immediately and then exit. If you follow the instructions above for changing the file association for the "print verb", you will see that I simply listed the field contents in the order they appear. I would've listed the labels for the fields in the dialog, but I am at home using Linux and couldn't remember them off the top of my head. But, they are the same as those listed for the RTF file type, so you can cut & paste from there.
Quote:Can this be done in Sesame?
Yes. As I mentioned above, Sesame uses an environment variable "SESAME_PRINT_COMMAND".
If you wish to actually change the default system wide, you can use the instructions above. It may be possible to automate the process with regedit from the command line.
Quote:Have to consider distribution in a network where different users may have different browsers. Don't want to have to set up each workstation individually.
It really doesn't have to do with their preferred browser. Sesame does provide a different environment variable for both the browser and the print renderer, they can be set independently. Windows also sets the associations independently. On Windows I use Netscape as my browser, but my HTML print renderer is the default:
rundll32.exe C:\winnt\system32\mshtml.dll,PrintHTML
The mshtml.dll exists whether or not you have or use IE, it simply the
same print renderer that IE uses. MSOffice, on the other hand, uses msohtmed.exe.
You can, under Windows, set folk's desktops to all have the same settings within a Domain or Workgroup, but that it is a question best left to one of the MS system administration forums.