Results 1 to 10 of 10

Thread: (resolved)Why is printer.**** command not recoginiesed by vb.net

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Slovenia, Europe
    Posts
    66

    (resolved)Why is printer.**** command not recoginiesed by vb.net

    Hi. I am migrating rather unsuccessfully from VB. 6 to VB. net
    I have problems at printing. in vb 6. I used something like this.


    Printer.print "Hello!"
    printer.enddoc

    How is this code in VB.net
    and also I noticed vbscalecentimetres is not understood. I hope there is a book or a web page on "migrating" from VB6 to VBNET.

    Thanks for your help.
    Last edited by 3rd_newton_law; Apr 29th, 2004 at 02:53 AM.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Dude, VB.net is a totally new game. There is a conversion utility that automatically converts a VB6 project to VB.net but its not great. Check in the File menu to see if you have it.

    Printing is completely revamped too, look up PrintDocument in MSDN for details. Hope you know oop programming
    I don't live here any more.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Slovenia, Europe
    Posts
    66
    Soo I have noticed VB .net is totally different from VB 6. The coversion utility takes like ages do the job and usually zillion things become "unsupoted" in the "next" version. I will go back to VB 6.

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Originally posted by 3rd_newton_law
    I will go back to VB 6.
    I said the same thing a few months ago. I wouldn't say it now.
    I don't live here any more.

  5. #5
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    learning the new way of things IS pretty frustrating but well worth it. I was learning vb6 a few years ago and I had to start from scratch to learn vb.net mainly because I forgot how vb6 worked lol. I agree, the .net way IS much better.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Slovenia, Europe
    Posts
    66
    I don't see anything in VB .net that cannot be done with VB 6. Soo If I know VB6 why learning a different language. VB 6 to VB .net like changing from Dutch to German. Or Italian to Spanish. I don't have time for this. I imagined VB .net wouldnt not be that different. BTW 25% of my 4000 lines of code project is using "unsuported" features in VB .net. Soo I am not going to rewrite 1/4 of my project.

  7. #7
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Originally posted by 3rd_newton_law
    I don't see anything in VB .net that cannot be done with VB 6.
    Then you aren't looking very hard (or dont know where to look!).

    VB.net is 100% Object Orientated. VB6 is a joke in this respect, its classes don't even have parameter'd constructors

    Classes make programming easier and more robust. VB6 just wasn't up to it.

    I wish I'd never learned VB6 because I'm still struggling to leave its bad habits behind.

    ps.
    "So" only has one "o" in it.
    I don't live here any more.

  8. #8
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    "I don't see anything in VB .net that cannot be done with VB 6. Soo If I know VB6 why learning a different language. VB 6 to VB .net like changing from Dutch to German. Or Italian to Spanish. I don't have time for this. "


    When I moved from DOS programmes to VB6 I found the printing requirements onerous!! Now I don't. When I moved to VB.NET I found the same thing, but I am sure that will also become natural.

    Yes, you may consider you do not have the time to change (I confess I have given up trying to convert my VB6 applications and have left them intact) but when you find your programming colleagues ( or worse, your competitors) finishing their applications five times quicker than you, your understanding of having no time will change. Also, if you ever have to use advanced arithmetical formulae, you will much appreciate .NET.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Slovenia, Europe
    Posts
    66
    How about that framework. If you make a program in VB .net will it run on a Win 98 that doesnt have framework installed?. I want to programm in .net but I have time to learn 1 new language. How about that C++ or C# ? Is it better to program there than in VB .net? And if you make a program in C++ .net do you need to have the framework installed?

  10. #10
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    HI,

    "How about that C++ or C# ? Is it better to program there than in VB .net?"


    C++ no way.

    C#, possibly. It will give you a marketing edge with possible employers as it is an indication that you are a "serious" professional. Search this forum on the topic for full pros & cons.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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