Solved

printing blob field

Posted on 2004-09-29
8
1,062 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
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Format Field with Dashes 6 59
Crystal Reports Date Calculation 10 46
How to modify the SQL query in Crystal 2016 1 37
Analyze Shared Variable? 7 27
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. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

713 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