mclosson
03-05-2005, 11:01 PM
I have developed an svg mapping solution where all of the mapping info, functionality, etc... is incorporated in a single svg file. For a number of complex reasons, the svg file is not being embedded into HTML and is instead being opened straight in the IE by the end user. I have everything working fine, except a printing solution. The end user wants to have a button on the map control that allows him/her to print the currently displayed map at a user selected page size. Is there a way to do this? I've tried using the emcascript in the svg file to open a browser window (using window.open), but just get a "permission denied" error. Is there any way around this? If this line of attack isn't going to work, does anyone have any suggestions as to a better way to approach this?
Thanks,
Mike
Anonymous
03-06-2005, 01:52 AM
To open popup window with Windows XP SP2 see
http://www.learnsvg.com/forum/viewtopic.php?t=357
Michel
mclosson
03-06-2005, 08:38 AM
I tried the solution of usint the http:// string, but it won't work in my case.
In my situation, the end user will have an svg open in an IE browser (no html) from double clicking on the svg file itself. He/she will have no other files and no access to the internet. I need a way to reformat the page he/she is looking at so that it can print at various sizes. I figured the only way to do this would be to open specific nodes/elements from the main svg file into an embedded svg control in a new browser window (that is dynamically opened form the main svg file).
One thought I've had is writing ecmascript to generate a new svg file with selected elements from the main one. This would occur when the user would select the print option on the main svg file. The new svg would then be opened up in a new browser window. I seem to be running into problems with permissions issues.
Mike