473,388 Members | 1,256 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Report Layout

I am writing a VB (2005) program that will allow the user to fill out and
print a form. The form input is stored in a database (SQL 2005) to be
retrieved/viewed/printed later. The form is originally a Word Document, I
also have this form as a PDF. Appearance and quality is critical for this
form.. so what I thought I'd do is convert the form to a bitmap, use a
picture object on my VB form and overlay textbox (no border) controls on top
of the image so the appearance remains exactly the same. I'm having
problems getting the document to bitmap format however.. PDF only gives the
option to save as a JPG, which is obviously reducing the quality (there's
some fuzziness around the letters) and the image size ratio is not right -
on my VB form, a small portion of the document (the top left corner) fills
the screen.. it's much too large. The letters are at least double size what
they should appear.

Any suggestions how to go about making this form work in my VB application
without reducing the quality? Thanks,

Ryan
Sep 21 '06 #1
11 1916
Hello Ryan,

Print the original MS Word file to the MS Document Imaging printer. This
will produce an MDI file which can then be saved as a TIFF. From there any
decent graphics package can convert it to any format you desire.

-Boo
I am writing a VB (2005) program that will allow the user to fill out
and print a form. The form input is stored in a database (SQL 2005)
to be retrieved/viewed/printed later. The form is originally a Word
Document, I also have this form as a PDF. Appearance and quality is
critical for this form.. so what I thought I'd do is convert the form
to a bitmap, use a picture object on my VB form and overlay textbox
(no border) controls on top of the image so the appearance remains
exactly the same. I'm having problems getting the document to bitmap
format however.. PDF only gives the option to save as a JPG, which is
obviously reducing the quality (there's some fuzziness around the
letters) and the image size ratio is not right - on my VB form, a
small portion of the document (the top left corner) fills the screen..
it's much too large. The letters are at least double size what they
should appear.

Any suggestions how to go about making this form work in my VB
application without reducing the quality? Thanks,

Ryan

Sep 21 '06 #2
Thanks. The image quality is much better now. However, it's still showing
up in my Form as way to big. I think this is due to the resolution. The
..bmp file is 300x300 dots per inch. It must be displaying in my picture box
at something like 100x100 dots per inch. Is there anyway to modify the
PictureBox so that it displays correctly?

Ryan

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft.c om...
Hello Ryan,

Print the original MS Word file to the MS Document Imaging printer. This
will produce an MDI file which can then be saved as a TIFF. From there
any decent graphics package can convert it to any format you desire.

-Boo
>I am writing a VB (2005) program that will allow the user to fill out
and print a form. The form input is stored in a database (SQL 2005)
to be retrieved/viewed/printed later. The form is originally a Word
Document, I also have this form as a PDF. Appearance and quality is
critical for this form.. so what I thought I'd do is convert the form
to a bitmap, use a picture object on my VB form and overlay textbox
(no border) controls on top of the image so the appearance remains
exactly the same. I'm having problems getting the document to bitmap
format however.. PDF only gives the option to save as a JPG, which is
obviously reducing the quality (there's some fuzziness around the
letters) and the image size ratio is not right - on my VB form, a
small portion of the document (the top left corner) fills the screen..
it's much too large. The letters are at least double size what they
should appear.

Any suggestions how to go about making this form work in my VB
application without reducing the quality? Thanks,

Ryan


Sep 21 '06 #3
Hello Ryan,

Yes. Why don't you have a peek at the picturebox properties. Also, any
decent graphics package will change the resolution.

-Boo
Thanks. The image quality is much better now. However, it's still
showing up in my Form as way to big. I think this is due to the
resolution. The .bmp file is 300x300 dots per inch. It must be
displaying in my picture box at something like 100x100 dots per inch.
Is there anyway to modify the PictureBox so that it displays
correctly?

Ryan

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft.c om...
>Hello Ryan,

Print the original MS Word file to the MS Document Imaging printer.
This will produce an MDI file which can then be saved as a TIFF.
From there any decent graphics package can convert it to any format
you desire.

-Boo
>>I am writing a VB (2005) program that will allow the user to fill
out and print a form. The form input is stored in a database (SQL
2005) to be retrieved/viewed/printed later. The form is originally
a Word Document, I also have this form as a PDF. Appearance and
quality is critical for this form.. so what I thought I'd do is
convert the form to a bitmap, use a picture object on my VB form and
overlay textbox (no border) controls on top of the image so the
appearance remains exactly the same. I'm having problems getting
the document to bitmap format however.. PDF only gives the option to
save as a JPG, which is obviously reducing the quality (there's some
fuzziness around the letters) and the image size ratio is not right
- on my VB form, a small portion of the document (the top left
corner) fills the screen.. it's much too large. The letters are at
least double size what they should appear.

Any suggestions how to go about making this form work in my VB
application without reducing the quality? Thanks,

Ryan

Sep 21 '06 #4
Hi Ryan,

You can set the PictureBox.SizeMode property to
PictureBoxSizeMode.StretchImage to make the image fit the picturebox. Or
set it to PictureBoxSizeMode.AutoSize to make the picturebox fit image.

Please check the following link for more information:

http://msdn2.microsoft.com/en-us/lib...picturebox.siz
emode.aspx

HTH.

Kevin Yu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Sep 22 '06 #5
Still struggling with this. Yes I can convert the image to a .bmp. It
still looks absolutely huge in my picturebox. The image is 24MB as a bitmap
and everything (photoshop, paint, visual studio) I try to edit it in gives
me an "out of memory" error. If I try to "stretch" the image the "out of
memory" occurs during design time. Why am I stretching the image anyways?
I want to have an exact replica of the original document, not some
misproportioned image. I have 1 GB memory in this PC and no other programs
running, but it is infact sucking all my resources. Why is it so difficult
to get a word document to display on a visual basic form - they're both MS
products, you'd think there would be some compatibility rather than going
through 14 conversion steps and still failing to work. Any other
suggestions appreciated greatly. (pulling out whats left of my hair)

Thanks.
"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft.c om...
Hello Ryan,

Yes. Why don't you have a peek at the picturebox properties. Also, any
decent graphics package will change the resolution.

-Boo
>Thanks. The image quality is much better now. However, it's still
showing up in my Form as way to big. I think this is due to the
resolution. The .bmp file is 300x300 dots per inch. It must be
displaying in my picture box at something like 100x100 dots per inch.
Is there anyway to modify the PictureBox so that it displays
correctly?

Ryan

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft. com...
>>Hello Ryan,

Print the original MS Word file to the MS Document Imaging printer.
This will produce an MDI file which can then be saved as a TIFF.
From there any decent graphics package can convert it to any format
you desire.

-Boo

I am writing a VB (2005) program that will allow the user to fill
out and print a form. The form input is stored in a database (SQL
2005) to be retrieved/viewed/printed later. The form is originally
a Word Document, I also have this form as a PDF. Appearance and
quality is critical for this form.. so what I thought I'd do is
convert the form to a bitmap, use a picture object on my VB form and
overlay textbox (no border) controls on top of the image so the
appearance remains exactly the same. I'm having problems getting
the document to bitmap format however.. PDF only gives the option to
save as a JPG, which is obviously reducing the quality (there's some
fuzziness around the letters) and the image size ratio is not right
- on my VB form, a small portion of the document (the top left
corner) fills the screen.. it's much too large. The letters are at
least double size what they should appear.

Any suggestions how to go about making this form work in my VB
application without reducing the quality? Thanks,

Ryan


Sep 27 '06 #6
Sketch/skewed the bmp by 1/3rd (33%). Brought the size down to 1/10th
(2.5MB). And now it displays fine and I don't run out of memory. Doesn't
make sense to me why if I look at the attributes in Paint it says something
like 2" by 3" but it "appears" the size of a normal sheet of paper. At 8.5"
x 11" it appeared 3 times that size. Still confused but at least making
progress again.

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Still struggling with this. Yes I can convert the image to a .bmp. It
still looks absolutely huge in my picturebox. The image is 24MB as a
bitmap and everything (photoshop, paint, visual studio) I try to edit it
in gives me an "out of memory" error. If I try to "stretch" the image the
"out of memory" occurs during design time. Why am I stretching the image
anyways? I want to have an exact replica of the original document, not
some misproportioned image. I have 1 GB memory in this PC and no other
programs running, but it is infact sucking all my resources. Why is it so
difficult to get a word document to display on a visual basic form -
they're both MS products, you'd think there would be some compatibility
rather than going through 14 conversion steps and still failing to work.
Any other suggestions appreciated greatly. (pulling out whats left of my
hair)

Thanks.
"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft.c om...
>Hello Ryan,

Yes. Why don't you have a peek at the picturebox properties. Also, any
decent graphics package will change the resolution.

-Boo
>>Thanks. The image quality is much better now. However, it's still
showing up in my Form as way to big. I think this is due to the
resolution. The .bmp file is 300x300 dots per inch. It must be
displaying in my picture box at something like 100x100 dots per inch.
Is there anyway to modify the PictureBox so that it displays
correctly?

Ryan

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft .com...

Hello Ryan,

Print the original MS Word file to the MS Document Imaging printer.
This will produce an MDI file which can then be saved as a TIFF.
From there any decent graphics package can convert it to any format
you desire.

-Boo

I am writing a VB (2005) program that will allow the user to fill
out and print a form. The form input is stored in a database (SQL
2005) to be retrieved/viewed/printed later. The form is originally
a Word Document, I also have this form as a PDF. Appearance and
quality is critical for this form.. so what I thought I'd do is
convert the form to a bitmap, use a picture object on my VB form and
overlay textbox (no border) controls on top of the image so the
appearance remains exactly the same. I'm having problems getting
the document to bitmap format however.. PDF only gives the option to
save as a JPG, which is obviously reducing the quality (there's some
fuzziness around the letters) and the image size ratio is not right
- on my VB form, a small portion of the document (the top left
corner) fills the screen.. it's much too large. The letters are at
least double size what they should appear.
>
Any suggestions how to go about making this form work in my VB
application without reducing the quality? Thanks,
>
Ryan
>



Sep 27 '06 #7
Well this worked great for my form. The form works and is fast. However,
it does not work for my report (the part that's suppose to print).. I'm
using the Visual Studio report creator and added the image to the report as
an embedded image. I can barely move my mouse even in design.. if I use
autosize for the image the text looks horrible, if I use clip, well, NOW
it's showing up as way too small (the 2" by 3"). Tried to use my large
image and "out of memory" exception keeps getting thrown again.

Help!
Thanks,
Ryan

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:ek*************@TK2MSFTNGP06.phx.gbl...
Sketch/skewed the bmp by 1/3rd (33%). Brought the size down to 1/10th
(2.5MB). And now it displays fine and I don't run out of memory. Doesn't
make sense to me why if I look at the attributes in Paint it says
something like 2" by 3" but it "appears" the size of a normal sheet of
paper. At 8.5" x 11" it appeared 3 times that size. Still confused but
at least making progress again.

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Still struggling with this. Yes I can convert the image to a .bmp. It
still looks absolutely huge in my picturebox. The image is 24MB as a
bitmap and everything (photoshop, paint, visual studio) I try to edit it
in gives me an "out of memory" error. If I try to "stretch" the image
the "out of memory" occurs during design time. Why am I stretching the
image anyways? I want to have an exact replica of the original document,
not some misproportioned image. I have 1 GB memory in this PC and no
other programs running, but it is infact sucking all my resources. Why
is it so difficult to get a word document to display on a visual basic
form - they're both MS products, you'd think there would be some
compatibility rather than going through 14 conversion steps and still
failing to work. Any other suggestions appreciated greatly. (pulling out
whats left of my hair)

Thanks.
"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft. com...
>>Hello Ryan,

Yes. Why don't you have a peek at the picturebox properties. Also, any
decent graphics package will change the resolution.

-Boo

Thanks. The image quality is much better now. However, it's still
showing up in my Form as way to big. I think this is due to the
resolution. The .bmp file is 300x300 dots per inch. It must be
displaying in my picture box at something like 100x100 dots per inch.
Is there anyway to modify the PictureBox so that it displays
correctly?

Ryan

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsof t.com...

Hello Ryan,
>
Print the original MS Word file to the MS Document Imaging printer.
This will produce an MDI file which can then be saved as a TIFF.
From there any decent graphics package can convert it to any format
you desire.
>
-Boo
>
>I am writing a VB (2005) program that will allow the user to fill
>out and print a form. The form input is stored in a database (SQL
>2005) to be retrieved/viewed/printed later. The form is originally
>a Word Document, I also have this form as a PDF. Appearance and
>quality is critical for this form.. so what I thought I'd do is
>convert the form to a bitmap, use a picture object on my VB form and
>overlay textbox (no border) controls on top of the image so the
>appearance remains exactly the same. I'm having problems getting
>the document to bitmap format however.. PDF only gives the option to
>save as a JPG, which is obviously reducing the quality (there's some
>fuzziness around the letters) and the image size ratio is not right
>- on my VB form, a small portion of the document (the top left
>corner) fills the screen.. it's much too large. The letters are at
>least double size what they should appear.
>>
>Any suggestions how to go about making this form work in my VB
>application without reducing the quality? Thanks,
>>
>Ryan
>>




Sep 27 '06 #8
Hello Ryan,

If yer using report creator, just recreate the form and be done with this
sillyness with pictures.

-Boo
Well this worked great for my form. The form works and is fast.
However, it does not work for my report (the part that's suppose to
print).. I'm using the Visual Studio report creator and added the
image to the report as an embedded image. I can barely move my mouse
even in design.. if I use autosize for the image the text looks
horrible, if I use clip, well, NOW it's showing up as way too small
(the 2" by 3"). Tried to use my large image and "out of memory"
exception keeps getting thrown again.

Help!
Thanks,
Ryan
"Ryan" <Ty****@newsgroups.nospamwrote in message
news:ek*************@TK2MSFTNGP06.phx.gbl...
>Sketch/skewed the bmp by 1/3rd (33%). Brought the size down to
1/10th (2.5MB). And now it displays fine and I don't run out of
memory. Doesn't make sense to me why if I look at the attributes in
Paint it says something like 2" by 3" but it "appears" the size of a
normal sheet of paper. At 8.5" x 11" it appeared 3 times that size.
Still confused but at least making progress again.

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>>Still struggling with this. Yes I can convert the image to a .bmp.
It still looks absolutely huge in my picturebox. The image is 24MB
as a bitmap and everything (photoshop, paint, visual studio) I try
to edit it in gives me an "out of memory" error. If I try to
"stretch" the image the "out of memory" occurs during design time.
Why am I stretching the image anyways? I want to have an exact
replica of the original document, not some misproportioned image. I
have 1 GB memory in this PC and no other programs running, but it is
infact sucking all my resources. Why is it so difficult to get a
word document to display on a visual basic form - they're both MS
products, you'd think there would be some compatibility rather than
going through 14 conversion steps and still failing to work. Any
other suggestions appreciated greatly. (pulling out whats left of
my hair)

Thanks.

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft .com...

Hello Ryan,

Yes. Why don't you have a peek at the picturebox properties.
Also, any decent graphics package will change the resolution.

-Boo

Thanks. The image quality is much better now. However, it's
still showing up in my Form as way to big. I think this is due to
the resolution. The .bmp file is 300x300 dots per inch. It must
be displaying in my picture box at something like 100x100 dots per
inch. Is there anyway to modify the PictureBox so that it displays
correctly?
>
Ryan
>
"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microso ft.com...
>
>Hello Ryan,
>>
>Print the original MS Word file to the MS Document Imaging
>printer. This will produce an MDI file which can then be saved as
>a TIFF. From there any decent graphics package can convert it to
>any format you desire.
>>
>-Boo
>>
>>I am writing a VB (2005) program that will allow the user to
>>fill out and print a form. The form input is stored in a
>>database (SQL 2005) to be retrieved/viewed/printed later. The
>>form is originally a Word Document, I also have this form as a
>>PDF. Appearance and quality is critical for this form.. so what
>>I thought I'd do is convert the form to a bitmap, use a picture
>>object on my VB form and overlay textbox (no border) controls on
>>top of the image so the appearance remains exactly the same.
>>I'm having problems getting the document to bitmap format
>>however.. PDF only gives the option to save as a JPG, which is
>>obviously reducing the quality (there's some fuzziness around
>>the letters) and the image size ratio is not right - on my VB
>>form, a small portion of the document (the top left corner)
>>fills the screen.. it's much too large. The letters are at
>>least double size what they should appear.
>>>
>>Any suggestions how to go about making this form work in my VB
>>application without reducing the quality? Thanks,
>>>
>>Ryan
>>>

Sep 27 '06 #9
Looks like I may have to do this. I wasn't sure if report creator had all
the options for layout and formatting to allow me to accurately reproduce
the document, but I suppose now I'll have to find out.

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft.c om...
Hello Ryan,

If yer using report creator, just recreate the form and be done with this
sillyness with pictures.

-Boo
>Well this worked great for my form. The form works and is fast.
However, it does not work for my report (the part that's suppose to
print).. I'm using the Visual Studio report creator and added the
image to the report as an embedded image. I can barely move my mouse
even in design.. if I use autosize for the image the text looks
horrible, if I use clip, well, NOW it's showing up as way too small
(the 2" by 3"). Tried to use my large image and "out of memory"
exception keeps getting thrown again.

Help!
Thanks,
Ryan
"Ryan" <Ty****@newsgroups.nospamwrote in message
news:ek*************@TK2MSFTNGP06.phx.gbl...
>>Sketch/skewed the bmp by 1/3rd (33%). Brought the size down to
1/10th (2.5MB). And now it displays fine and I don't run out of
memory. Doesn't make sense to me why if I look at the attributes in
Paint it says something like 2" by 3" but it "appears" the size of a
normal sheet of paper. At 8.5" x 11" it appeared 3 times that size.
Still confused but at least making progress again.

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .

Still struggling with this. Yes I can convert the image to a .bmp.
It still looks absolutely huge in my picturebox. The image is 24MB
as a bitmap and everything (photoshop, paint, visual studio) I try
to edit it in gives me an "out of memory" error. If I try to
"stretch" the image the "out of memory" occurs during design time.
Why am I stretching the image anyways? I want to have an exact
replica of the original document, not some misproportioned image. I
have 1 GB memory in this PC and no other programs running, but it is
infact sucking all my resources. Why is it so difficult to get a
word document to display on a visual basic form - they're both MS
products, you'd think there would be some compatibility rather than
going through 14 conversion steps and still failing to work. Any
other suggestions appreciated greatly. (pulling out whats left of
my hair)

Thanks.

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsof t.com...

Hello Ryan,
>
Yes. Why don't you have a peek at the picturebox properties.
Also, any decent graphics package will change the resolution.
>
-Boo
>
>Thanks. The image quality is much better now. However, it's
>still showing up in my Form as way to big. I think this is due to
>the resolution. The .bmp file is 300x300 dots per inch. It must
>be displaying in my picture box at something like 100x100 dots per
>inch. Is there anyway to modify the PictureBox so that it displays
>correctly?
>>
>Ryan
>>
>"GhostInAK" <gh*******@gmail.comwrote in message
>news:be**************************@news.micros oft.com...
>>
>>Hello Ryan,
>>>
>>Print the original MS Word file to the MS Document Imaging
>>printer. This will produce an MDI file which can then be saved as
>>a TIFF. From there any decent graphics package can convert it to
>>any format you desire.
>>>
>>-Boo
>>>
>>>I am writing a VB (2005) program that will allow the user to
>>>fill out and print a form. The form input is stored in a
>>>database (SQL 2005) to be retrieved/viewed/printed later. The
>>>form is originally a Word Document, I also have this form as a
>>>PDF. Appearance and quality is critical for this form.. so what
>>>I thought I'd do is convert the form to a bitmap, use a picture
>>>object on my VB form and overlay textbox (no border) controls on
>>>top of the image so the appearance remains exactly the same.
>>>I'm having problems getting the document to bitmap format
>>>however.. PDF only gives the option to save as a JPG, which is
>>>obviously reducing the quality (there's some fuzziness around
>>>the letters) and the image size ratio is not right - on my VB
>>>form, a small portion of the document (the top left corner)
>>>fills the screen.. it's much too large. The letters are at
>>>least double size what they should appear.
>>>>
>>>Any suggestions how to go about making this form work in my VB
>>>application without reducing the quality? Thanks,
>>>>
>>>Ryan
>>>>


Sep 28 '06 #10
Well report creator definitely does not operate like a word processor. What
took me about 30 minutes to reproduce in Word looks like it will take me the
better part of 8 hours to reproduce in Report Creator. Each line of text
has to be in it's own text box.. each line doesn't align spacing with the
last line based on font sizes.. etc. Ugg.. tedious to say the least.

Do people really use report creator to design forms?

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Looks like I may have to do this. I wasn't sure if report creator had all
the options for layout and formatting to allow me to accurately reproduce
the document, but I suppose now I'll have to find out.

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft.c om...
>Hello Ryan,

If yer using report creator, just recreate the form and be done with this
sillyness with pictures.

-Boo
>>Well this worked great for my form. The form works and is fast.
However, it does not work for my report (the part that's suppose to
print).. I'm using the Visual Studio report creator and added the
image to the report as an embedded image. I can barely move my mouse
even in design.. if I use autosize for the image the text looks
horrible, if I use clip, well, NOW it's showing up as way too small
(the 2" by 3"). Tried to use my large image and "out of memory"
exception keeps getting thrown again.

Help!
Thanks,
Ryan
"Ryan" <Ty****@newsgroups.nospamwrote in message
news:ek*************@TK2MSFTNGP06.phx.gbl...

Sketch/skewed the bmp by 1/3rd (33%). Brought the size down to
1/10th (2.5MB). And now it displays fine and I don't run out of
memory. Doesn't make sense to me why if I look at the attributes in
Paint it says something like 2" by 3" but it "appears" the size of a
normal sheet of paper. At 8.5" x 11" it appeared 3 times that size.
Still confused but at least making progress again.

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl. ..

Still struggling with this. Yes I can convert the image to a .bmp.
It still looks absolutely huge in my picturebox. The image is 24MB
as a bitmap and everything (photoshop, paint, visual studio) I try
to edit it in gives me an "out of memory" error. If I try to
"stretch" the image the "out of memory" occurs during design time.
Why am I stretching the image anyways? I want to have an exact
replica of the original document, not some misproportioned image. I
have 1 GB memory in this PC and no other programs running, but it is
infact sucking all my resources. Why is it so difficult to get a
word document to display on a visual basic form - they're both MS
products, you'd think there would be some compatibility rather than
going through 14 conversion steps and still failing to work. Any
other suggestions appreciated greatly. (pulling out whats left of
my hair)
>
Thanks.
>
"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microso ft.com...
>
>Hello Ryan,
>>
>Yes. Why don't you have a peek at the picturebox properties.
>Also, any decent graphics package will change the resolution.
>>
>-Boo
>>
>>Thanks. The image quality is much better now. However, it's
>>still showing up in my Form as way to big. I think this is due to
>>the resolution. The .bmp file is 300x300 dots per inch. It must
>>be displaying in my picture box at something like 100x100 dots per
>>inch. Is there anyway to modify the PictureBox so that it displays
>>correctly?
>>>
>>Ryan
>>>
>>"GhostInAK" <gh*******@gmail.comwrote in message
>>news:be**************************@news.micro soft.com...
>>>
>>>Hello Ryan,
>>>>
>>>Print the original MS Word file to the MS Document Imaging
>>>printer. This will produce an MDI file which can then be saved as
>>>a TIFF. From there any decent graphics package can convert it to
>>>any format you desire.
>>>>
>>>-Boo
>>>>
>>>>I am writing a VB (2005) program that will allow the user to
>>>>fill out and print a form. The form input is stored in a
>>>>database (SQL 2005) to be retrieved/viewed/printed later. The
>>>>form is originally a Word Document, I also have this form as a
>>>>PDF. Appearance and quality is critical for this form.. so what
>>>>I thought I'd do is convert the form to a bitmap, use a picture
>>>>object on my VB form and overlay textbox (no border) controls on
>>>>top of the image so the appearance remains exactly the same.
>>>>I'm having problems getting the document to bitmap format
>>>>however.. PDF only gives the option to save as a JPG, which is
>>>>obviously reducing the quality (there's some fuzziness around
>>>>the letters) and the image size ratio is not right - on my VB
>>>>form, a small portion of the document (the top left corner)
>>>>fills the screen.. it's much too large. The letters are at
>>>>least double size what they should appear.
>>>>>
>>>>Any suggestions how to go about making this form work in my VB
>>>>application without reducing the quality? Thanks,
>>>>>
>>>>Ryan
>>>>>



Sep 28 '06 #11
Ok, thought I'd try out Crystal Reports.. 100% better for laying out a form
to specifications.

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:uH****************@TK2MSFTNGP03.phx.gbl...
Well report creator definitely does not operate like a word processor.
What took me about 30 minutes to reproduce in Word looks like it will take
me the better part of 8 hours to reproduce in Report Creator. Each line
of text has to be in it's own text box.. each line doesn't align spacing
with the last line based on font sizes.. etc. Ugg.. tedious to say the
least.

Do people really use report creator to design forms?

"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Looks like I may have to do this. I wasn't sure if report creator had
all the options for layout and formatting to allow me to accurately
reproduce the document, but I suppose now I'll have to find out.

"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft. com...
>>Hello Ryan,

If yer using report creator, just recreate the form and be done with
this sillyness with pictures.

-Boo

Well this worked great for my form. The form works and is fast.
However, it does not work for my report (the part that's suppose to
print).. I'm using the Visual Studio report creator and added the
image to the report as an embedded image. I can barely move my mouse
even in design.. if I use autosize for the image the text looks
horrible, if I use clip, well, NOW it's showing up as way too small
(the 2" by 3"). Tried to use my large image and "out of memory"
exception keeps getting thrown again.

Help!
Thanks,
Ryan
"Ryan" <Ty****@newsgroups.nospamwrote in message
news:ek*************@TK2MSFTNGP06.phx.gbl...

Sketch/skewed the bmp by 1/3rd (33%). Brought the size down to
1/10th (2.5MB). And now it displays fine and I don't run out of
memory. Doesn't make sense to me why if I look at the attributes in
Paint it says something like 2" by 3" but it "appears" the size of a
normal sheet of paper. At 8.5" x 11" it appeared 3 times that size.
Still confused but at least making progress again.
>
"Ryan" <Ty****@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
>
>Still struggling with this. Yes I can convert the image to a .bmp.
>It still looks absolutely huge in my picturebox. The image is 24MB
>as a bitmap and everything (photoshop, paint, visual studio) I try
>to edit it in gives me an "out of memory" error. If I try to
>"stretch" the image the "out of memory" occurs during design time.
>Why am I stretching the image anyways? I want to have an exact
>replica of the original document, not some misproportioned image. I
>have 1 GB memory in this PC and no other programs running, but it is
>infact sucking all my resources. Why is it so difficult to get a
>word document to display on a visual basic form - they're both MS
>products, you'd think there would be some compatibility rather than
>going through 14 conversion steps and still failing to work. Any
>other suggestions appreciated greatly. (pulling out whats left of
>my hair)
>>
>Thanks.
>>
>"GhostInAK" <gh*******@gmail.comwrote in message
>news:be**************************@news.micros oft.com...
>>
>>Hello Ryan,
>>>
>>Yes. Why don't you have a peek at the picturebox properties.
>>Also, any decent graphics package will change the resolution.
>>>
>>-Boo
>>>
>>>Thanks. The image quality is much better now. However, it's
>>>still showing up in my Form as way to big. I think this is due to
>>>the resolution. The .bmp file is 300x300 dots per inch. It must
>>>be displaying in my picture box at something like 100x100 dots per
>>>inch. Is there anyway to modify the PictureBox so that it displays
>>>correctly?
>>>>
>>>Ryan
>>>>
>>>"GhostInAK" <gh*******@gmail.comwrote in message
>>>news:be**************************@news.micr osoft.com...
>>>>
>>>>Hello Ryan,
>>>>>
>>>>Print the original MS Word file to the MS Document Imaging
>>>>printer. This will produce an MDI file which can then be saved as
>>>>a TIFF. From there any decent graphics package can convert it to
>>>>any format you desire.
>>>>>
>>>>-Boo
>>>>>
>>>>>I am writing a VB (2005) program that will allow the user to
>>>>>fill out and print a form. The form input is stored in a
>>>>>database (SQL 2005) to be retrieved/viewed/printed later. The
>>>>>form is originally a Word Document, I also have this form as a
>>>>>PDF. Appearance and quality is critical for this form.. so what
>>>>>I thought I'd do is convert the form to a bitmap, use a picture
>>>>>object on my VB form and overlay textbox (no border) controls on
>>>>>top of the image so the appearance remains exactly the same.
>>>>>I'm having problems getting the document to bitmap format
>>>>>however.. PDF only gives the option to save as a JPG, which is
>>>>>obviously reducing the quality (there's some fuzziness around
>>>>>the letters) and the image size ratio is not right - on my VB
>>>>>form, a small portion of the document (the top left corner)
>>>>>fills the screen.. it's much too large. The letters are at
>>>>>least double size what they should appear.
>>>>>>
>>>>>Any suggestions how to go about making this form work in my VB
>>>>>application without reducing the quality? Thanks,
>>>>>>
>>>>>Ryan
>>>>>>




Sep 28 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mir Nazim | last post by:
Hi, I m planning to use ZODB for an applicaton. Is any one aware of report generators like Data Vision, Crystal Reports, fo python object databases. Some of you may have faced/solved similar...
3
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
0
by: Erwin | last post by:
I'm working on a report. Within this report a chart (line chart) is build which shows how many suggestions have been made per servicegroupe. Now I have put such a chart into the report, but the...
2
by: Bill | last post by:
I'm having trouble making hyperlink fields or controls or labels to be active in a report. The hyperlink field is fine in the Table and in the Query but not in the Report based on the query. I...
7
by: TC | last post by:
I've produced an Access application for a client. For one report, text gets cut-off at the right margin when we print the report. It does this only when we print; it doesn't happen when we view the...
9
by: StuckAndNoClue | last post by:
I'm pretty new to Access and VB and also know fairly little (more like nothing) about SQL. I've got three queries that shows similar fields, the main ones being: FIRST QUERY Name ID Active...
1
by: ebernier | last post by:
Hi, I created a report with a link for a drill through report. The problem is when I'm on the drill through report. If I click on the "print layout" button and after I click on the "back to parent...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
1
by: rakh | last post by:
hello we recently have migrated from oracle 6i to oracle 9i. my problem is that when i compile and run a report (that was built in reports 6i) the web layout in reports 9i is not displaying....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.