V1n
asked on
Suppress the BLOB Field
Hi All.
I'm using a BLOB field to insert .bmp images from Dataset in crystal reports 9.The problem is if a field doesn't have an image then I want to suppress the BLOB field.Can any one help me out with a formula to suppress the field or is there any way to suppress. Thank you.
I'm using a BLOB field to insert .bmp images from Dataset in crystal reports 9.The problem is if a field doesn't have an image then I want to suppress the BLOB field.Can any one help me out with a formula to suppress the field or is there any way to suppress. Thank you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
systan - How does that help suppress the field or section if the image doesn't exist?
mlmcc
mlmcc
Ok, I understood it wrong. It can't be.
No problem. Thought I was missing something in the links.
mlmcc
mlmcc
What about assigning another existing real image, then compare if the image from the dataset is null of not,
if null, then replace it with the existing physical image.
like this; code snippet; pseudo code;
if null, then replace it with the existing physical image.
like this; code snippet; pseudo code;
System.Drawing.Imaging.ImageCodecInfo[] arrayICI = System.Drawing.Imaging.ImageCodecInfo.GetImageEncoders();
int x = 0;
for (x = 0; x <= arrayICI.Length - 1; x++)
{
////listBox1.Items.Add(arrayICI[x].FormatDescription.ToString()); ////get all image codecs
////compare here...
////if variable_image_from_dataset_equals_from_array_of_codecs_then...
////...
else
////replace image_assigned_to_report_equals_from_existing_real_image_from_disk
////...
}
ASKER
Hello mlmcc, systan
Thanks for replying, I got a new issue with the BLOB field the issue goes like this
I am generating some Images dynamically and was storing that in the dataset (.xsd file) and inserting all the images in the report using the database expert and inserting them using BLOB field, as the dataset is generated dynamically sometimes only some files appears (ex: lets say a dataset have 5 Images which is maximum but sometimes it may have only 3 Images but i had created the report for maximum)then while running the report I'm getting an error stating that "The table 'Table Name ' Could not be found".Please help me to solve this issue.Thanks in advance.
Thanks for replying, I got a new issue with the BLOB field the issue goes like this
I am generating some Images dynamically and was storing that in the dataset (.xsd file) and inserting all the images in the report using the database expert and inserting them using BLOB field, as the dataset is generated dynamically sometimes only some files appears (ex: lets say a dataset have 5 Images which is maximum but sometimes it may have only 3 Images but i had created the report for maximum)then while running the report I'm getting an error stating that "The table 'Table Name ' Could not be found".Please help me to solve this issue.Thanks in advance.
Are you generating 5 images for a single record?
If so you will have to generate something so the field/column exists.
mlmcc
If so you will have to generate something so the field/column exists.
mlmcc
ASKER
yes, generating them for single report. Can we suppress those BLOB fields which doesn't have images dynamically in the code itself? Thank you.
No, because the report is looking for them.
You could produce a BLANK image and put it in the data or perhaps you can use NULL
mlmcc
You could produce a BLANK image and put it in the data or perhaps you can use NULL
mlmcc
ASKER
Thank you, So if we have 2 BLOB fields in a section and if the second one is null and suppressed using the IsNull formula then how to suppress the blank space in the section which is formed after suppressing the BLOB field?
Do you have the blob fields on top of each other or side by side?
If on top then you could put each blob in its own section and suppress the section if blank
If side by side then there is no way to reuse that blank area.
mlmcc
If on top then you could put each blob in its own section and suppress the section if blank
If side by side then there is no way to reuse that blank area.
mlmcc
ASKER
one followed by other
like
DetailSection1
Blob Field1
Blob Field2
Blob Field3
DetailSection2
Blob Field4
Blob Field5
these fields should be in the same section.Is there any way to suppress the blank space.
If Blob Field2 & Blob Field3 are null then the report should be like below
DetailSection1
Blob Field1
DetailSection2
Blob Field4
Blob Field5
but not like
DetailSection1
Blob Field1
DetailSection2
Blob Field4
Blob Field5
Thank you.
like
DetailSection1
Blob Field1
Blob Field2
Blob Field3
DetailSection2
Blob Field4
Blob Field5
these fields should be in the same section.Is there any way to suppress the blank space.
If Blob Field2 & Blob Field3 are null then the report should be like below
DetailSection1
Blob Field1
DetailSection2
Blob Field4
Blob Field5
but not like
DetailSection1
Blob Field1
DetailSection2
Blob Field4
Blob Field5
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Very much for your solution.
http://www.eggheadcafe.com/community/aspnet/2/10011778/resizing-the-image.aspx
http://bytes.com/topic/net/answers/796115-c-net-resize-bitmap