Computing.Net > Forums > Programming > VB problems

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

VB problems

Reply to Message Icon

Original Message
Name: fungko
Date: July 8, 2003 at 02:24:41 Pacific
Subject: VB problems
OS: Windows 98
CPU/Ram: 256
Comment:

I have the following problems when I tried to print a
form horizontally from the PrintForm Method of VB 4 by
the following commands, but they doesn't work properly.

Printer.Orientation = vbPRORLandscape
PrintForm

The first statement is vaildate only when using Printer
Objects such as Printer.Print command. However, it was
independent to the PrintForm method. I can't found any
properties to set it to print a form horizontally.
How to do it?

I have the other problem of version difference between
16-bit VB 4 and 32-bit VB 4.
The option base 1 seems has no effect to set the lbound
value of custom array to 1. It can't only done under
16-bit VB 4.


test1 = Array(1, 2, 3, 4, 5)

In 16-bit VB 4, the LBound(test1) returns 1, if Option
Base 1 was specified. However, in 32-bit VB 4,
LBound(test1) always returns 0 whenever Option Base 1
was setted. Also all the other value that I got was wrong
value and the last one test1(5) generate a run-time error
9: Script out of range. The range of array was unexpectly
moved from 1 to 5 from 0 to 4.

I've created hunreds of smilar array, each of them contain
ten to thirty elements. Is there any fix to correct the
bug without recreate the array?

I have the last problem which was I can't
successfully post to the MSDN newsgroup.
The server tell me Message has been posted
and will be appeared later. However, I
can't see my post after 1 day. Using search
returns no result. What happened?


Report Offensive Message For Removal


Response Number 1
Name: Alex
Date: July 14, 2003 at 02:05:05 Pacific
Reply: (edit)

This is the lines of code needed to print a landscape
P
r
i
n
t
e
r
.
O
r
i
e
n
t
a
t
i
o
n

=

v
b
P
R
O
R
L
a
n
d
s
c
a
p
e



Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software