I am converting some VB 6 code to vb2008 code, and I am trying to print a table of data to a page (see the attached pdf). I have never coded printing code before. One line of the old vb6 code is
Printer.Print (Tab(FirstTab + (HTab * 1)); "Wavelength(nm) - This Graph is a Custom Autoscale" & vbCrLf)
The first problem that I have is FirstTab and HTab I get errors for them. It says 'Option strict on dissallows converting from integer to short'. I thought, 'Hey, I can take care of this,' so I tried dim'ing them both as short or both as integers but I still get the same message.
I have done some reading, and the ';' character keeps the print at the same line. I attached a pdf scan of a sample of what I am trying to print.
Can some one point me in the correct place to take care of this?
adam
Printer.Print (Tab(FirstTab + (HTab * 1)); "Wavelength(nm) - This Graph is a Custom Autoscale" & vbCrLf)
The first problem that I have is FirstTab and HTab I get errors for them. It says 'Option strict on dissallows converting from integer to short'. I thought, 'Hey, I can take care of this,' so I tried dim'ing them both as short or both as integers but I still get the same message.
I have done some reading, and the ';' character keeps the print at the same line. I attached a pdf scan of a sample of what I am trying to print.
Can some one point me in the correct place to take care of this?
adam