7.7.5 system.net.OpenURL() Broken

Yeah, I actually had the capitalization wrong the first time. Oops… Anyway, I got it working correctly now. I had to leave the double // off of the file: part and I also had to switch out all of the backslashes with front slashes for some reason? Well, it’s working now. Thanks for the help and pointing me in the right direction. Here’s the working code for other people that will probably run into this:

[code]def dataExport(tableData, tableName):
“”" This will export data to excel, requires data and the table name for proper export"""
# Import time module to get current time to create file name.
from java.net import URLEncoder
import system
import time
ftime = time.strftime("%d%b%Y", time.localtime())

fileName = tableName + ftime + ".xls"
filePath = system.dataset.exportExcel(fileName, 1, tableData)
if filePath != None:
	filePath = filePath.replace(' ', '%20')
	filePath = filePath.replace('\\', '/')
	system.net.openURL("file:" + filePath)[/code]