I have a Text box with some text and I have a print preview button that preview the text
Also i have a button to add a picture to the text box, along with the textCode:Using titlefont As New System.Drawing.Font("Arial", 18, FontStyle.Bold) e.Graphics.DrawString("File Printout", titlefont, Brushes.Black, 370, 27) End Using Using datafont As New System.Drawing.Font("Arial", 10, FontStyle.Regular) e.Graphics.DrawString(Me.textMainTextBox.Text, datafont, Brushes.Black, 10, 130) End Using
what i want to do is have the picture display along with the test in the print previewCode:Me.OpenFileDialog1.Filter = "JPEG Images (*.jpg,*.jpeg)|*.jpg;*.jpeg|Gif Images (*.gif)|*.gif|Bitmaps (*.bmp)|*.bmp" Me.OpenFileDialog1.FilterIndex = 1 If Me.OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim img As New System.Drawing.Bitmap(Me.OpenFileDialog1.FileName) Clipboard.SetImage(img) textMainTextBox.Paste()
this is not part of my Assignment
any help is very appreciated
.C




Reply With Quote