This may be easy but I have no clue. On my program I have a button which the user clicks and a pdf file comes up. My question is how do you allow the user to save a pdf file by a click of a button. I tried to do the common dialog box and just put the filename that they want to save in their folder but it doesn't save. Here is my code below:

dlgSave.FileName = "16CM32MDOSummary(50).pdf"
dlgSave.Flags = cdlOFNNoChangeDir Or cdlOFNHideReadOnly Or _
cdlOFNOverwritePrompt Or cdlOFNPathMustExist
dlgSave.Filter = "PDF Files (*.pdf)|*.pdf"
dlgSave.FilterIndex = 1
dlgSave.CancelError = True
On Error Resume Next
dlgSave.ShowSave

If Err.Number <> 0 Then
Exit Sub
End If

Please someone help me.
There are numerous of files they want to be able to save in their directories.

Thanks in advance