|
-
August 23rd, 2004, 09:04 AM
#7
Oops...
My code was set up using a User-defined Type for the FromPage, ToPage, and Copies, when I copied the code to the forum, I just changed them into normal variables. I didn't realize that PrintOut requires an Integer and not a Long. Sorry about that.
Should be:
Code:
intFromPage = CInt(txtPageFrom.Text)
intToPage = CInt(txtPageTo.Text)
intCopies = CInt(txtCopies.Text)
Report.PrintOut False, intCopies, , intFromPage, intToPage
In regards to the VB6 crash, did you make sure that CRViewer was checked in your Components list?
I'd rather be wakeboarding...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|