Printing from VB.NET - Frustrated, Code please!

A

al jones

I'm converting a very old GWBASIC program - I now have it writing to a file
and I can print the file but that's not what I want to do (page breaks /
widows / orphans / etc). Would some kind soul give me the code I'd need in
my program to replace the following WriteLines with output to a printer - I
can't see it (a sample of about 800 lines of spaghetti code):

L77: P = R - 0.3
L78: myFile.WriteLine("RADIUS TO OUTSIDE 1ST LANE LINE = " + Str(P) + "
(METERS)")
myFile.WriteLine("") : myFile.WriteLine(" ALL OTHER MEASURMENTS
HEREIN ARE IN METERS")
H = intL1Distance / 2 - 200
R1 = R
Z = F + (Q * H)
L88: myFile.WriteLine("") : myFile.WriteLine(" " + Str(Q) +
"TURN STAGGER") : myFile.WriteLine("")
If Q = 1 Then GoTo L210
If Q = 3 Then GoTo L210
L95: If Z > 0 Then GoTo L145
myFile.WriteLine(PrintRadius(intCounter, R, 1, Z))
GoTo L107
L106: myFile.WriteLine(PrintDegrees(intCounter, Int(Z), (Int(B)),
Int(G)))
L107: If M = 20 Then GoTo L110
 
G

Guest

Croutchie, (et al.) thank you ... I have to run this AM but will definitely
be checking back in this eve. Now I'm embarassed ....

Again my apologies for multi-posting this but for some reason I'm not seeing
this message (and others??) at home via nntp.
 
G

Guest

I will not adapt, I'll fight it tooth and nail .... thanks Croutchie finally
got back to the house and I'll go see what I can learn. For some reason my
newsreader is not retrieving this thread, I've chased it down on 4 different
servers, 3 different readers and cna't understand why - but why did it have
to be 'poor little me, wah!!!'

Again my aplogies to the group for just sending and sending //al
 

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