473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Easy way to upadte vb6 print code?

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.
Jan 8 '07 #1
3 1114
"will_456" <wi;ll****@bigpond.comha scritto nel messaggio
news:RN****************@news-server.bigpond.net.au...
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.
Jan 8 '07 #2

"Fabio Z" <zn*******@virgilio.itwrote in message
news:u3**************@TK2MSFTNGP02.phx.gbl...
"will_456" <wi;ll****@bigpond.comha scritto nel messaggio
news:RN****************@news-server.bigpond.net.au...
>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.
I had a look but your downloads page doesn't appear to contain any
hyperlinks.
Jan 8 '07 #3
"will_456" <wi;ll****@bigpond.comha scritto nel messaggio
news:1Sxoh.3548$A8.2523@news-
I had a look but your downloads page doesn't appear to contain any
hyperlinks.
You're right, there are some problems with download page :(
You can download MyNeoReport here
http://www.neodatatype.net/downloads...yNeoReport.zip

Jan 9 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: JW | last post by:
I'm displaying product thumbnails with brief descriptions on web pages. Clicking on the product does a javascript popup with larger image and detailed description info passed to the javascript...
4
by: Pascal | last post by:
Hello, I've a function like this: def myfunction(data, verbose = False): dothis... if verbose: print 'I do this' dothisother if verbose: print 'I do this other' ...
5
by: f pemberton | last post by:
I have kind of an interesting string, it looks like a couple hundred letters bunched together with no spaces. Anyway, i'm trying to put a "?" and a (\n) newline after every 100th character of the...
2
by: oyster | last post by:
I find that the existing email moudle is some hard for me to understand, especially the part of how to set the CC, BCC and attach the files. Is there any more easy one like this p-code? import...
1
by: NevilleDNZ | last post by:
Hi, Apologies first as I am not a unicode expert.... indeed I the details probably totally elude me. Not withstanding: how can I convert a binary string containing UTF-8 binary into a python...
0
by: bwooster47 | last post by:
Is there an easy way to have an automatically constructed local time zone tzinfo object be used with datetime? Following code shows the problem - the time module works fine mostly (%Z works, but...
10
by: Anton Vredegoor | last post by:
Python's sorting algorithm takes advantage of preexisting order in a sequence: #sort_test.py import random import time def test(): n = 1000 k = 2**28
8
by: Max Steel | last post by:
Hey gang, I'm new to python coding. I'm trying to find the simplest way to open a text file (on the same server) and display it's content. The text file is plain text (no markup language of any...
2
by: jalanb3 | last post by:
Evening all, And thank you for your valuable reading skills. The following pattern turned up in coding tonight. It works, but I'm suspicious, it just seems too easy. So any comments or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.