473,396 Members | 1,871 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,396 software developers and data experts.

[CrystalReports] VB.NET workaround - insert a picture into a report based off a file path

Hi,

We are developing an application based on an MSDE database. We want to
create various reports such as a printable catalog that contains pictures.
Because our application will ship with over 3,000 high-resolution pictures
(300-dpi TIFF files), they will be stored in the database using their file
path (ex.: \images\picture0049364782.tif), because of the 2GB data
limitation of MSDE.

We cannot use SQL server because the application is a single-user one, the
database is to be stored on the workstation, and having our customers set up
a full SQL Server in order to just run the app is definitely not an option,
as the TCO would be way too high.

I got this article from the BusinessObjects' knowledge base:

http://support.businessobjects.com/l...s/c2014707.asp

The sample code provided is Visual Basic 6 project. I tried to "upgrade" the
project to VB.NET, but got an error message stating that Crystal Reports 9
is missing (as a reference), because we have the .NET version.

I am desperately searching for equivalent code I can use, that works with
VB.NET or I want to add this code from scratch, but I don't know what to
write ;-)

Thank you so much in advance!!!!!!!

ANNE DEBLOIS

Nov 21 '05 #1
2 7115
Hi Anne,

The problem is that there are different version of CR and different
development tools and this makes everything hard to understand which one to
go with. I have complete code in my book but it spans a few pages and it
isn't a simple copy and paste issue. Here are the steps you need to take to
get this working:

1) Create a DataSet object that reads in your records.
2) Manually add a blob column to the DataSet object.
3) Create the XSD file using the new DataSet structure.
4) Build the report using the new XSD file.
5) Loop through all the records and load the TIF file into the Blob column
of the dataset for each record.
6) Pass the DataSet to the report.
7) Viola! Pictures. :-)

So you can see that this is more involved than what can be posted in the
newsgroups. But if you understand the steps above then you will be able to
get it to work.

HTH,

Brian Bischof
www.CrystalReportsBook.com

"Anne DeBlois" <ad************@dsdinternational.net> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,

We are developing an application based on an MSDE database. We want to
create various reports such as a printable catalog that contains pictures.
Because our application will ship with over 3,000 high-resolution pictures
(300-dpi TIFF files), they will be stored in the database using their file
path (ex.: \images\picture0049364782.tif), because of the 2GB data
limitation of MSDE.

We cannot use SQL server because the application is a single-user one, the
database is to be stored on the workstation, and having our customers set up a full SQL Server in order to just run the app is definitely not an option, as the TCO would be way too high.

I got this article from the BusinessObjects' knowledge base:

http://support.businessobjects.com/l...s/c2014707.asp

The sample code provided is Visual Basic 6 project. I tried to "upgrade" the project to VB.NET, but got an error message stating that Crystal Reports 9
is missing (as a reference), because we have the .NET version.

I am desperately searching for equivalent code I can use, that works with
VB.NET or I want to add this code from scratch, but I don't know what to
write ;-)

Thank you so much in advance!!!!!!!

ANNE DEBLOIS

Nov 21 '05 #2
Thank you, Brian. I'll see what I can do.

Anne

"Brian Bischof" <Br***@NoSpamBischofSystems.com> a écrit dans le message de
news: uk**************@TK2MSFTNGP10.phx.gbl...
Hi Anne,

The problem is that there are different version of CR and different
development tools and this makes everything hard to understand which one
to
go with. I have complete code in my book but it spans a few pages and it
isn't a simple copy and paste issue. Here are the steps you need to take
to
get this working:

1) Create a DataSet object that reads in your records.
2) Manually add a blob column to the DataSet object.
3) Create the XSD file using the new DataSet structure.
4) Build the report using the new XSD file.
5) Loop through all the records and load the TIF file into the Blob column
of the dataset for each record.
6) Pass the DataSet to the report.
7) Viola! Pictures. :-)

So you can see that this is more involved than what can be posted in the
newsgroups. But if you understand the steps above then you will be able to
get it to work.

HTH,

Brian Bischof
www.CrystalReportsBook.com

"Anne DeBlois" <ad************@dsdinternational.net> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,

We are developing an application based on an MSDE database. We want to
create various reports such as a printable catalog that contains
pictures.
Because our application will ship with over 3,000 high-resolution
pictures
(300-dpi TIFF files), they will be stored in the database using their
file
path (ex.: \images\picture0049364782.tif), because of the 2GB data
limitation of MSDE.

We cannot use SQL server because the application is a single-user one,
the
database is to be stored on the workstation, and having our customers set

up
a full SQL Server in order to just run the app is definitely not an

option,
as the TCO would be way too high.

I got this article from the BusinessObjects' knowledge base:

http://support.businessobjects.com/l...s/c2014707.asp

The sample code provided is Visual Basic 6 project. I tried to "upgrade"

the
project to VB.NET, but got an error message stating that Crystal Reports
9
is missing (as a reference), because we have the .NET version.

I am desperately searching for equivalent code I can use, that works with
VB.NET or I want to add this code from scratch, but I don't know what to
write ;-)

Thank you so much in advance!!!!!!!

ANNE DEBLOIS


Nov 21 '05 #3

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

Similar topics

0
by: Stijn Lambert | last post by:
Hi all, I am having some problems with Crystal Reports 9 for Visual Studio .NET ... I have a multithreaded application that prints reports in several threads (based upon incoming requests on a...
4
by: anannj | last post by:
Hi everyone, I have a Crystal Report with a subreport in a windows application, which is to be exported to the pdf file. I followed the instructions on...
3
by: Lorenc | last post by:
Is anybody experiencing the following error when trying to export a crystal report to a pdf? This error happens randomly. ------------------------------------------------------------------------...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
0
by: Jon Vaughan | last post by:
I have a crystalreports control that im using to display reports in using client side data. On some of the reports I get a very ambigious error , which is just a path to the report guide that has...
2
by: mattioli.mirko | last post by:
Hi , I have a problem with CrystalReports. It is possible create CrystalReports at runtime? I don't have the file .xsd at designer , when run my application, I have the DataTable object , and the...
3
by: Parasyke | last post by:
I have a form that has a bound textbox displaying a picture path (in another folder) for an image (e.g. C:\Documents and Settings\My Documents\My Pictures\SymbolVRC 6940.jpg). I need this actual...
3
by: Parasyke | last post by:
Thanks anyone in advance... I have a product report that prints out data about the product including a picture... at least that's what I need to happen. On my report I have a linked Image with the...
1
by: davidwelli | last post by:
Hello, I have a Access 200 format database that contains contact details and a picture for each record. The contact details are held in one table and the images are held in another as OLE...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.