Hi Turboy,
Welcome to the Forum!
You can user to enter filename in the UI and use that. After taking username you can use
"thisXDocument.SaveAs(filename);" to save the file.
But if you save file with code then your form needs fulltrust.
Other way is, if you are using sharepoint you can take a dataconnection to submit the form.
Agni
InfoPath Dev India