Solved

printing blob field

Posted on 2004-09-29
8
1,070 Views
Last Modified: 2008-01-09
i have a vb.net application with a drawing tool that will be used on tablet pc's. the image is then printed on a crystal report through a dataset and blob field. the problem is that if very little is written in the drawing section of the application, the text displays very very large on the report to fill the size of the box of the blob field. can this be changed? i am also not displaying the report, but am printing it directly so i'm not using the crystal report designer.
0
Comment
Question by:coletteck8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 42

Expert Comment

by:frodoman
ID: 12180272
This may be helpful: http://support.businessobjects.com/library/kbase/articles/c2003171.asp

You should be able to apply the AutoSize property.

frodoman
0
 

Author Comment

by:coletteck8
ID: 12180364
i did see that article, but i'm using .net and am Not using the report design component
0
 

Author Comment

by:coletteck8
ID: 12180375
so i wasn't sure how to apply it to my situation or even if i could
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 42

Expert Comment

by:frodoman
ID: 12180518
Assuming you're using Visual Studio you have the RDC as part of the Crystal runtime library and this code will work the same for VB.Net as it does for vb6.

Unfortunately that's the only way to do it - the .Net designer doesn't expose properties for images that will allow you to directly set the size mode - you have to write code to handle it yourself.  

frodoman
0
 

Author Comment

by:coletteck8
ID: 12180565
then do you know how i might use that code with my code below? i'm not loading the image directly, but instead am using the array with a dataset.
If Not ipNotes.Image Is Nothing Then
            Image.FromStream(ipNotes.Image).Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg)
            ds.Tables.Add("Images")
            ds.Tables(0).Columns.Add("ImageColumn", GetType(Byte()))
            row1 = ds.Tables(0).NewRow()
            row1(0) = ms.ToArray()
            ds.Tables(0).Rows.Add(row1)
            ds.Tables.Add(dt)
            ds.WriteXmlSchema("c:\PSI\reportschema.xsd")
            cr.SetDataSource(ds)
0
 
LVL 42

Accepted Solution

by:
frodoman earned 250 total points
ID: 12180756
You'd have to use RDC and LoadImage in order to get this to work.  I guess the simple answer is that without re-writing your report code, you can't change the image size - your call if the current format is bad enough to justify the effort of changing all of your code.

frodoman
0
 

Author Comment

by:coletteck8
ID: 12180859
well that's what i was wondering.....if there was any other way around that. unfortunately, i'm loading the image straight from the control and not the db, so i'm not sure what will happen. but thanks for the help.
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12180973
Yea, I doubt it's going to be worthwhile to alter your code but at least you know how if the situation ever arises again...

Good luck!

frodoman
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question