Easy way to upadte vb6 print code?

W

will_456

I promised myself this year I would forget vb6 and once again try to sit
down and learn vb.net.
I have written many applications in vb6 that need migration to the .net
platform but it's just so hard to forget everything and start afresh. I
really feel that knowing vb6 would have to be the biggest obstacle in
learning the .net language.
I'm just getting weened on data access but the new way of printing has got
me totally lost. My old apps use the Printer object and nothing is going to
update my code that dynamically creates my flow charts and tables of data
on the page without a complete rewrite using .net.

Is there a simpler way? eg. add a reference to a vb6 library that will
allow the old code to work?

Print code is fiddly. It rarely looks right first time. As you know you use
a lot of trial and error (and paper)before you get the perfect result you
want. It will take me years to rewrite this stuff and I don't want to spend
that amount of time just to get it to do the same printout using a different
language.
 
F

Fabio Z

I'm just getting weened on data access but the new way of printing has got
me totally lost. My old apps use the Printer object and nothing is going
to update my code that dynamically creates my flow charts and tables of
data on the page without a complete rewrite using .net.

Unluckly the .Net printing way is totally different from the old vb6 way :(
The basic is that you need a PrintDocument that do the work.
In the Print event you need to draw your page on the e.Graphics parameter
and set e.MorePages if the page is not the last.

I don't know if my printing/graphic projects can be useful for you, but you
can take a look at www.neodatatype.net.
 
W

will_456

Fabio Z said:
Unluckly the .Net printing way is totally different from the old vb6 way
:(
The basic is that you need a PrintDocument that do the work.
In the Print event you need to draw your page on the e.Graphics parameter
and set e.MorePages if the page is not the last.

I don't know if my printing/graphic projects can be useful for you, but
you can take a look at www.neodatatype.net.
I had a look but your downloads page doesn't appear to contain any
hyperlinks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top