Results 1 to 4 of 4

Thread: Printing out of a database

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Rotterdam, Zuid-Holland, Netherlands
    Posts
    12

    Post

    Hi all again,

    Here goes:

    I have this database application in wich I want to print a recordset out of the database.

    I'm using only code to do this cause if i use the designersmode (datareport) make a report and I compile the whole thing it returns an error message if i execute the call datareport.
    that message is
    Class is not registered.
    I'm trying to figure out what it means but I can't find the problem.

    So what I did next was making a print function where I defined what i wanted to be printed.

    Now, next thing that happens i can't get the lines in some sort of a column.

    Well here is a piece of the code I use to print the document of record set.

    Dim sSubject As String

    sSubject = txtSubject

    printer.print "Subject:"; txtSubject

    now what i want to do is to make sure everything what i have put in the txtFIELDS apears just under eachother like in a column

    I just can't figure this out, so if anyone can..

    plz

    HELP ME!!!!


    Greetz

  2. #2
    New Member
    Join Date
    Aug 2000
    Posts
    15

    Talking

    Ok i guess that the string isnt formatted at all?

    if this is the case you need to trim the strings to get rid of leading/trailing spaces and then split up the string into sections. Write a function that fills out a string to make it a certain length use the space command.

    then for each line just call the print command. This should format it how you want

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Rotterdam, Zuid-Holland, Netherlands
    Posts
    12

    Question

    WOW....

    now you got me here.

    How the h*l* do i make a string like that?

    I haven't been this long programming in VB6 so if you can sorta help me out with this thing i would appreciate it alot

    if anyone can.. PLEASE!

    Greetz


  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Rotterdam, Zuid-Holland, Netherlands
    Posts
    12
    Hi there,
    here i'm again.
    I've been trying to figure out how to make a function to make this collumn thing.
    but it doesn't seem to work.
    Does anyone have an example for me that i could work out and use?

    Thnx and Greetz

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