Results 1 to 4 of 4

Thread: convert

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2007
    Posts
    192

    convert

    Private Sub Timer1_Timer()
    If VBGetDefPrinter = DispDriver Then
    printer.print()
    printer.Print()
    printer.Print(Microsoft.VisualBasic.Left(naziv_fir me, 20))
    printer.Print(Microsoft.VisualBasic.Left(adresa, 20))
    printer.EndDoc()
    End If
    Timer1.Enabled = False
    End Sub
    Error is Name 'printer' is not declared.
    When i declare printer with some type(string) shows me that print is not member of string ,when i match some another type it shows me the same.

  2. #2
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211

    Re: convert

    Im pretty sure they removed the printer object in .net. However they made it much easier becuase you can just add a printdialog to your project and use ShowDialog() to open it.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2007
    Posts
    192

    Resolved Re: convert

    Quote Originally Posted by Motoxpro
    Im pretty sure they removed the printer object in .net. However they made it much easier becuase you can just add a printdialog to your project and use ShowDialog() to open it.
    Thanks

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335

    Re: convert

    Quote Originally Posted by Motoxpro
    Im pretty sure they removed the printer object in .net.
    Indeed they did.

    keko9: If you consider this resolved, you could help us out by pulling down the Thread Tools menu and clicking the Mark Thread Resolved menu item. That will let everyone know that you have your answer.

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width