|
Hi, I´ve got this ASP.NET desktop application, which has a form containing a mapcontrol. The form also contain a button, which I use to produce a imagefile from the current image of this mapcontrol. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ExportObject As MapInfo.Mapping.MapExport = New MapInfo.Mapping.MapExport(Me.MapControl1.Map) ExportObject.ExportSize = New MapInfo.Mapping.ExportSize(Me.MapControl1.Map.Size.Width, Me.MapControl1.Map.Size.Height) ExportObject.Format = MapInfo.Mapping.ExportFormat.Bmp ExportObject.Export("C:\Temp\ExportImage.bmp") Printing() End Sub Now I would like to be able to fetch this image and print it with my default printer. Sounds simple, but since I am a novice, I don´t know how to. I tried to read about the PrintDocument.PrintPage Event in the .NET Framework Class Library, but I need to fetch the image and not a text via a stream. All suggestions are greatly appreciated. |