estica 1 Posted October 6, 2017 Report Share Posted October 6, 2017 Boa noite, Estou aqui com um problema. Tenho um programa e tem a função de mandar imprimir o que está apresentado numa Form. O que acontece é que eu quero que ele me pergunte se quero pré visualizar ou guardar em PDF ou imprimir, mas se a impressora estiver ligada ele não pergunta nada e manda simplesmente imprimir. Deixo aqui o código para ver se alguém me consegue ajudar. Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim bm As New Bitmap(Me.Panel1.Width, Me.Panel1.Height) Panel1.DrawToBitmap(bm, New Rectangle(0, 0, Me.Panel1.Width, Me.Panel1.Height)) e.Graphics.DrawImage(bm, 0, 0) Dim aPS As New PageSetupDialog aPS.Document = PrintDocument1 End Sub Link to post Share on other sites
estica 1 Posted October 8, 2017 Author Report Share Posted October 8, 2017 Não sei se alguém compreendeu a minha duvida. Se tiver de meter aqui o código todo para me ajudarem, eu posso postar o code Link to post Share on other sites
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