Hello!
I would like for my pdf export report to have the same name as the data file. I have the script to create the pdf export and allows one to make the file name as they wish however I would like the name to automatically be the same as the csv file and located in the same folder (which is not always the same location). It would be preferred that it does this in the background with no windows popping up for user input.
Can someone please help me?!!
Dim PDFFile : PDFFile = LayoutWritePath & "Test Results.pdf"
Call Report.Sheets.ExportToPDF(PDFFile,False)
If (Err.Number <> 0) Then
Call MsgBoxDisp("Cannot create the PDF document.")
else
' show results in PDF reader
If FileExist(PDFFile) Then Call ExtProgram("", PDFFile)
If Err.Number <> 0 Then MsgBox "Cannot start the PDF Reader. Have you installed a PDF Reader on your computer?"
End If
Thank you!