Windows forms visual studio 2008 I am using the following code to print a form
this is working fine but I have to issues
1-I need to insert the Date on the file name, with this code it does but it only puts the year
example "2013 Enh A Shift" I need to be the Month/Date/Year + File name
2- I need to hardcode the path to the file to be save right now by default comes on the document folders. I want a Network Share path
Dim a As Date
a = Format(Today, "short date")
Dim pf As New PrintForm
pf.Form = Me
pf.Form.BackColor = Color.White
pf.PrinterSettings.DefaultPageSettings.Landscape = True
pf.PrintAction = Printing.PrintAction.PrintToPrinter
pf.PrinterSettings.PrinterName = "Adobe PDF"
pf.DocumentName = a & " " & "ENH A SHIFT"
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.