I have the following code for a button that allows the user to save the report in the report viewer as a pdf
[code]from java.util import Date
table = event.source.parent.getComponent(‘Report Viewer’)
now = Date()
fileDate = system.db.dateFormat(now, “MM d, yyyy”)
filename = fileDate + “_” + “Report” + “.pdf”
filePath = system.file.saveFile(filename, ‘pdf’, ‘report’)[/code]
The popup box comes up as if you were saving a document, but it does not actually save the document to the computer. What am I missing? It’s not throwing any errors, it’s just simply not saving the document to the computer.