Results 1 to 3 of 3

Thread: Printing Array's or Data to "output"

  1. #1

    Thread Starter
    Lively Member Patrice Bourdages's Avatar
    Join Date
    Jun 2000
    Location
    Quebec, Canada
    Posts
    83

    Unhappy

    Hello Guys!

    I've been comtempleting this problem for a couple of hours now and browsed this forum for an answer but couldn't find any (yet).

    Here's the problem:

    From within the application, I need to "print" or at least preview and then print the results of a data crunching. The data resides in an array and would like to "output" the results.

    Exemple:
    option base 1
    dim Results(4) as integer
    ... data crunching ... gives the following results...
    Results(1) = 15
    Results(2) = 25
    Results(3) = 34
    Results(4) = 57

    How do I go from there?

    Thanks for the help

    Sincerely yours,

    Patrice B.
    Information System Analyst
    SAS 9.1.3, VB6 SP6, VB.Net 2003, SQL7.0/2000

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    if you mean Print to the printer, then
    Code:
    Dim i
    For i = LBound(Results) to UBound(Results)
    Printer.Print Reults(i)
    Next i
    
    Printer.EndDoc
    For preview, use an activex control
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3

    Thread Starter
    Lively Member Patrice Bourdages's Avatar
    Join Date
    Jun 2000
    Location
    Quebec, Canada
    Posts
    83
    I'll try that tonight at home.

    Thanks for the reply.

    Would it be difficult to have "formatting" with boxes and continuous lines?

    How do I program those continuous lines with all the "crossing" possibilities.

    Sincerely yours,

    Patrice B.
    Information System Analyst
    SAS 9.1.3, VB6 SP6, VB.Net 2003, SQL7.0/2000

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width