dcsimg
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
    Super Moderator 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.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width