I have a sql server 2005 database with a table that stores images in a varbinary field.
These images have different dimensions, it could be 150x150 px or 1024x768 px.
Trying to print a text at the top and then the image below per each record.
Sometimes there are no pictures (null value).
Setting the picturebox field SIZING property to "AutoSize" gives you a format like seen below, that allows to maximize the paper printout since if there is no image, it will not print as if it was leaving a placeholder (as it does with any other setting), see below and keep reading after where the problem is described.
Page 1
____________________________
TEXT (rec# 1)
----------------------------------
| Picture (rec# 1) |
| |
---------------------------------
TEXT (rec# 2)
TEXT (rec# 3)
---------------------------------
| Picture (rec# 3) |
| |
| |
| |
| |
---------------------------------
TEXT (rec# 4)
---------------------------------
| Picture (rec# 4) |
---------------------------------
(desired format, and partially achieved with Sizing prop set to "AutoSize", the layout repeats along pages depending on the picture size, as long as the width fits in one page, otherwise it will print the remnant of the image in a 2nd page alone)
Now, when the image goes beyond the size that can fit in the width or height of he page, you would get an additional page for whatever did not fit in the original area for the image.
What the "Autosize" is lacking is the ability to automatically resize, but up to a certain point so it does not span to a second page to print what did not fit in the original place but rather fits to the maximum dimension that can be fit in one page.
Page 1
____________________________
TEXT Record 1
---------------------------------
| Picture Record 1 |
| |
---------------------------------
TEXT Record 2
---------------------------------
| Picture Record 2 |
---------------------------------
____________________________
Page 2
----------------
| Picture | (this is what did not fit width in the previous page for this record
| Record 1 |
----------------
____________________________
Page 3
TEXT Record 2
----------------------------------
| Picture record 2 |
| Picture record 2 |
| Picture record 2 |
| Picture record 2 |
----------------------------------
TEXT Record 3
----------------------------------
| Picture record 3 |
| Picture record 3 |
| Picture record 3 |
| Picture record 3 |
---------------------------------
TEXT Record 4
TEXT Record 5
-------------------------------
| Picture record 5 |
| Picture record 5 |
| Picture record 5 |
| Picture record 5 |
-------------------------------
Extremely annoying because you have to end up using a fixed area that is left empty blank when the record does not have an image associated, thus wasting a lot of paper and providing an odd layout.
any plans to resolve this?
These images have different dimensions, it could be 150x150 px or 1024x768 px.
Trying to print a text at the top and then the image below per each record.
Sometimes there are no pictures (null value).
Setting the picturebox field SIZING property to "AutoSize" gives you a format like seen below, that allows to maximize the paper printout since if there is no image, it will not print as if it was leaving a placeholder (as it does with any other setting), see below and keep reading after where the problem is described.
Page 1
____________________________
TEXT (rec# 1)
----------------------------------
| Picture (rec# 1) |
| |
---------------------------------
TEXT (rec# 2)
TEXT (rec# 3)
---------------------------------
| Picture (rec# 3) |
| |
| |
| |
| |
---------------------------------
TEXT (rec# 4)
---------------------------------
| Picture (rec# 4) |
---------------------------------
(desired format, and partially achieved with Sizing prop set to "AutoSize", the layout repeats along pages depending on the picture size, as long as the width fits in one page, otherwise it will print the remnant of the image in a 2nd page alone)
Now, when the image goes beyond the size that can fit in the width or height of he page, you would get an additional page for whatever did not fit in the original area for the image.
What the "Autosize" is lacking is the ability to automatically resize, but up to a certain point so it does not span to a second page to print what did not fit in the original place but rather fits to the maximum dimension that can be fit in one page.
Page 1
____________________________
TEXT Record 1
---------------------------------
| Picture Record 1 |
| |
---------------------------------
TEXT Record 2
---------------------------------
| Picture Record 2 |
---------------------------------
____________________________
Page 2
----------------
| Picture | (this is what did not fit width in the previous page for this record
| Record 1 |
----------------
____________________________
Page 3
TEXT Record 2
----------------------------------
| Picture record 2 |
| Picture record 2 |
| Picture record 2 |
| Picture record 2 |
----------------------------------
TEXT Record 3
----------------------------------
| Picture record 3 |
| Picture record 3 |
| Picture record 3 |
| Picture record 3 |
---------------------------------
TEXT Record 4
TEXT Record 5
-------------------------------
| Picture record 5 |
| Picture record 5 |
| Picture record 5 |
| Picture record 5 |
-------------------------------
Extremely annoying because you have to end up using a fixed area that is left empty blank when the record does not have an image associated, thus wasting a lot of paper and providing an odd layout.
any plans to resolve this?