3 Replies - 1109 Views - Last Post: 11 August 2008 - 12:21 PM Rate Topic: *---- 2 Votes

#1 rpowell460  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 10-August 08

Saving an Image file to disk as a name entered in an input box

Post icon  Posted 10 August 2008 - 02:40 PM

I am aquiring an image from a camera. I would like to take a value entered from a text box and save the image the name of the text box value.

Private Sub BSaveImage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BSaveImage.Click

		Dim txtBadgesID As String

		SaveFileDialog1.FileName = ""
		If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
			Select Case SaveFileDialog1.FilterIndex
				Case 5 : VSTwain1.PdfMultiPage = False
				Case 6 : VSTwain1.PdfMultiPage = True
				Case 7 : VSTwain1.TiffMultiPage = False
				Case 8 : VSTwain1.TiffMultiPage = True
			End Select
			Try
				Cursor = Cursors.WaitCursor
				VSTwain1.SaveImage(imageNum, SaveFileDialog1.FileName)
				Cursor = Cursors.Default
				MsgBox("Image saved successfully!")
			Catch ex As ImagingException
				Cursor = Cursors.Default
				MsgBox(ex.Message)
			End Try
		End If
	End Sub



Is This A Good Question/Topic? 0
  • +

Replies To: Saving an Image file to disk as a name entered in an input box

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8374
  • View blog
  • Posts: 31,122
  • Joined: 12-June 08

Re: Saving an Image file to disk as a name entered in an input box

Posted 11 August 2008 - 08:10 AM

Okay, so what's the problem?
Was This Post Helpful? 0
  • +
  • -

#3 rpowell460  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 10-August 08

Re: Saving an Image file to disk as a name entered in an input box

Posted 11 August 2008 - 12:10 PM

View Postmodi123_1, on 11 Aug, 2008 - 08:10 AM, said:

Okay, so what's the problem?

Was This Post Helpful? 0
  • +
  • -

#4 rpowell460  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 10-August 08

Re: Saving an Image file to disk as a name entered in an input box

Posted 11 August 2008 - 12:21 PM

Quote

My problem has been fixed.

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1