zelarra821
Registered User.
- Local time
- Tomorrow, 00:26
- Joined
- Jan 14, 2019
- Messages
- 842
Buenas tardes.
I am trying to print a form, and I have succeeded in this way:
However, I would like to change the orientation of the PDF, so that instead of portrait it comes out as landscape.
How can I get it?
I have the BuscaCarpeta function in a module, because I use it in more places, and basically what it does is return the path of the folder that the user has selected.
Thanks.
I am trying to print a form, and I have succeeded in this way:
Code:
Private Sub CdmImprimir_Click()
On Error GoTo err_lbl
Dim Titulo As String
Dim Ruta As String
Titulo = Screen.ActiveForm.Caption
Ruta = BuscaCarpeta(Me)
If Ruta = "" Then
Exit Sub
Else
DoCmd.OutputTo acOutputForm, , acFormatPDF, Ruta & "\" & Titulo & ".pdf", 1
End If
Salida:
Exit Sub
err_lbl:
MsgBox "CdmImprimir: " & Err.Number & " " & Err.Description, vbInformation, NombreBD
Resume Salida
End Sub
However, I would like to change the orientation of the PDF, so that instead of portrait it comes out as landscape.
How can I get it?
I have the BuscaCarpeta function in a module, because I use it in more places, and basically what it does is return the path of the folder that the user has selected.
Thanks.