Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » printing columns using TAB function


printing columns using TAB function

Reply
  #1 (permalink)  
Old 06-04-04, 07:00 PM
MonsterMagnet MonsterMagnet is offline
New Member
 
Join Date: Jun 2004
Location: Lancashire, England
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
printing columns using TAB function

I have to produce a report (manually) using TAB's to move to the next column (or skip columns) but I do not understand the explanation Microsoft MSDN library gives, where does it fit in and even how the printline can associate with a printer. e.g.

I have a text file containg lines of 24 numbers and I need to separate them into columns as follows;

REF NO TYPE KG QTY CALC PRICE VAL1 PRICE VAL2 PROFIT
123456 1 1234 1234 1 1234 [price*kg] 1234 [price*qty] [val2-val1]
etc.

I have tried putting this into a textbox (txtprintpreview.text), with just a header, to see the results first as nothing was printing e.g.

Private Sub mnuPrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPrintPreview.Click
Dim header As String
header = "Mr Green (wholesaler) - Daily Sales Report"
FileOpen(1, "txtprintpreview.txt", OpenMode.Output)
Print(1, header, TAB(2), DateString)
FileClose(1)
End Sub

HELP!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 10:15 AM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 03:28 AM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM
File Management, sorry i keep changing, this is the last one! :) Arctic ASP 28 08-29-03 12:04 AM


All times are GMT -5. The time now is 02:21 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.