vasco16 Posted May 11, 2009 at 05:01 PM Report #263060 Posted May 11, 2009 at 05:01 PM Boas pessoal, existe maneira de centrar um printform? é que ele imprime-me mas cortar um pouco do form..
jpaulino Posted May 11, 2009 at 05:17 PM Report #263063 Posted May 11, 2009 at 05:17 PM Vê se este exemplo ajuda: http://www.codeproject.com/KB/printing/printformcomponent.aspx Ele mostra como definir as margens, que deverá servir para o que tu queres.
vasco16 Posted May 11, 2009 at 06:16 PM Author Report #263079 Posted May 11, 2009 at 06:16 PM Vê se este exemplo ajuda: http://www.codeproject.com/KB/printing/printformcomponent.aspx Ele mostra como definir as margens, que deverá servir para o que tu queres. sim serviu 😕 obrigado. para os quem tiver o mesmo problema: Private Sub PrintForm1_QueryPageSettings(ByVal sender As Object, ByVal e As System.Drawing.Printing.QueryPageSettingsEventArgs) Handles PrintForm1.QueryPageSettings Dim newMargins As System.Drawing.Printing.Margins newMargins = New System.Drawing.Printing.Margins(50, 50, 50, 50) e.PageSettings.Margins = newMargins End Sub
jpaulino Posted May 11, 2009 at 06:25 PM Report #263081 Posted May 11, 2009 at 06:25 PM sim serviu 😄 obrigado. para os quem tiver o mesmo problema: Marca o tópico como resolvido 😕
vasco16 Posted May 11, 2009 at 06:42 PM Author Report #263085 Posted May 11, 2009 at 06:42 PM Marca o tópico como resolvido 😕 desculpa esqueci-me.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now