Please I need help and dont know where to post the question.....
So I am making a small asp.net application and need to generate a crystal
report with one image that changes depending of some data.
I am using a Oracle database and for me is not important if the images are
on the hard drive or in the database... I just dont know how ti implement a
image that changes in the crystal report
Thanks in advance... kindly regards 5 1934
"=?Utf-8?B?RGFtaXI=?=" <Da***@discussi ons.microsoft.c om> wrote in
news:B1******** *************** ***********@mic rosoft.com: Please I need help and dont know where to post the question..... So I am making a small asp.net application and need to generate a crystal report with one image that changes depending of some data.
With the vs.net version of Crystal Reports this is trick to do. But this
is how you do it:
1. Create a dataset with a BLOB column (System.Byte[] column)
Dim _dcLogo As DataColumn = New DataColumn("Log o", System.Type.Get Type
("System.Byt e[]"))
2. Populate the new dataset with the data you wish.
3. Stuff the graphic into the Blob column.
'Read data into a byte array
'Read data into a byte array
Try
Dim _fs As FileStream = New FileStream(_Ima gePath, FileMode.Open,
FileAccess.Read , FileShare.ReadW rite)
Dim buff(_fs.Length ) As Byte
_fs.Read(buff, 0, buff.Length)
_fs.Close()
Dim _dr As DataRow = _Table.NewRow
'Put buffer into Logo Field
_dr("Logo") = buff
_Table.Rows.Add (_dr)
Catch ex As Exception
End Try
4. In the report designer, drag the blob column onto your report,
Crystal will automatically output the blob in the proper graphics format
(JPEG, GIF, etc). I've only tried using the BLOB column with JPEG
graphics.
I am using a Oracle database and for me is not important if the images are on the hard drive or in the database... I just dont know how ti implement a image that changes in the crystal report
Thanks in advance... kindly regards
--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
Lucas Tam <RE********@rog ers.com> wrote in
news:Xn******** *************** ****@127.0.0.1: "=?Utf-8?B?RGFtaXI=?=" <Da***@discussi ons.microsoft.c om> wrote in news:B1******** *************** ***********@mic rosoft.com:
Please I need help and dont know where to post the question..... So I am making a small asp.net application and need to generate a crystal report with one image that changes depending of some data.
With the vs.net version of Crystal Reports this is trick to do. But this is how you do it:
oops, it's getting late tonight:
With the vs.net version of Crystal Reports this is tricky to do. But this
is how you do it:
--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
I will try.. thanks...
"Lucas Tam" <RE********@rog ers.com> wrote in message
news:Xn******** *************** ****@127.0.0.1. .. "=?Utf-8?B?RGFtaXI=?=" <Da***@discussi ons.microsoft.c om> wrote in news:B1******** *************** ***********@mic rosoft.com:
Please I need help and dont know where to post the question..... So I am making a small asp.net application and need to generate a crystal report with one image that changes depending of some data.
With the vs.net version of Crystal Reports this is trick to do. But this is how you do it:
1. Create a dataset with a BLOB column (System.Byte[] column)
Dim _dcLogo As DataColumn = New DataColumn("Log o", System.Type.Get Type ("System.Byt e[]"))
2. Populate the new dataset with the data you wish.
3. Stuff the graphic into the Blob column.
'Read data into a byte array 'Read data into a byte array Try Dim _fs As FileStream = New FileStream(_Ima gePath, FileMode.Open, FileAccess.Read , FileShare.ReadW rite) Dim buff(_fs.Length ) As Byte _fs.Read(buff, 0, buff.Length) _fs.Close()
Dim _dr As DataRow = _Table.NewRow
'Put buffer into Logo Field _dr("Logo") = buff
_Table.Rows.Add (_dr)
Catch ex As Exception
End Try
4. In the report designer, drag the blob column onto your report, Crystal will automatically output the blob in the proper graphics format (JPEG, GIF, etc). I've only tried using the BLOB column with JPEG graphics.
I am using a Oracle database and for me is not important if the images are on the hard drive or in the database... I just dont know how ti implement a image that changes in the crystal report
Thanks in advance... kindly regards -- Lucas Tam (RE********@rog ers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
Sorry still no results:(
don't know whats happening... i don't get any error but the image is not
shown... here is my code:
Try
Dim _fs As FileStream = New FileStream("c:\ a.bmp", FileMode.Open,
FileAccess.Read , FileShare.ReadW rite)
Dim buff(_fs.Length ) As Byte
_fs.Read(buff, 0, buff.Length)
_fs.Close()
Dim _dr As DataRow = IspisRacunaDS1. SLIKA_TABLE.New Row
'IspisRacunaDS1 - dataset
'SLIKA_TABLE - table
'LOGo is a column of the table of a base64Binary type
IspisRacunaDS1. SLIKA_TABLE.Row s().Add(_dr)
_dr("Logo") = buff
_dr("ID") = 1
Catch ex As Exception
End Try
"Lucas Tam" <RE********@rog ers.com> wrote in message
news:Xn******** *************** ****@127.0.0.1. .. "=?Utf-8?B?RGFtaXI=?=" <Da***@discussi ons.microsoft.c om> wrote in news:B1******** *************** ***********@mic rosoft.com:
Please I need help and dont know where to post the question..... So I am making a small asp.net application and need to generate a crystal report with one image that changes depending of some data.
With the vs.net version of Crystal Reports this is trick to do. But this is how you do it:
1. Create a dataset with a BLOB column (System.Byte[] column)
Dim _dcLogo As DataColumn = New DataColumn("Log o", System.Type.Get Type ("System.Byt e[]"))
2. Populate the new dataset with the data you wish.
3. Stuff the graphic into the Blob column.
'Read data into a byte array 'Read data into a byte array Try Dim _fs As FileStream = New FileStream(_Ima gePath, FileMode.Open, FileAccess.Read , FileShare.ReadW rite) Dim buff(_fs.Length ) As Byte _fs.Read(buff, 0, buff.Length) _fs.Close()
Dim _dr As DataRow = _Table.NewRow
'Put buffer into Logo Field _dr("Logo") = buff
_Table.Rows.Add (_dr)
Catch ex As Exception
End Try
4. In the report designer, drag the blob column onto your report, Crystal will automatically output the blob in the proper graphics format (JPEG, GIF, etc). I've only tried using the BLOB column with JPEG graphics.
I am using a Oracle database and for me is not important if the images are on the hard drive or in the database... I just dont know how ti implement a image that changes in the crystal report
Thanks in advance... kindly regards -- Lucas Tam (RE********@rog ers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
"Damir" <da***********@ hotmail.com> wrote in
news:Oq******** ******@TK2MSFTN GP12.phx.gbl: Sorry still no results:( don't know whats happening... i don't get any error but the image is not shown... here is my code:
remove the try statements from the code... so that an error will be thrown.
Then see what error is occuring : )
--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stephan |
last post by:
Hi,
I'm using Visual Studio 2003 (C#) with the integrated
Crystal Report software and have the following question:
How can I assign a value (string) to an unbound (string)
field in Crystal Report at runtime?
Example:
private void button1_Click(object sender,
|
by: kristoff plasun |
last post by:
I have a problem with a C++ DCOM application that
prints Crystal Reports with data from Oracle.
The SQL query is relatively complex but when
the report is printed from the Crystal Reports
designer it shows up very fast. When the report
is printed from my application it takes about
ten times as long to get the report to appear.
When printing straight from the Crystal Reports
|
by: Dr. Indera |
last post by:
hello,
i previously posted the questions below on several crystal reports newsgroups, including the one for
the company that makes crystal reports, but never got an answer, so i'm hoping that someone on this
board knows the answers to them. the questions are for the version of crystal that ships with visual
studio.net 2003. if it helps, the reports that i create are in a visual basic.net project. it was
recommended that i post the...
|
by: Mythran |
last post by:
In .Net, how can I go about and set a Crystal Reports namespace? Right now
they use the Root Namespace (VB) from the project. How can I extend the
namespace for a single report (which will be set on all reports)?
Thanks for any and all help, in advance :)
Mythran
|
by: Karthic |
last post by:
When i right click on the .rpt file in the VS 2003, i see a property
printer setting.
It says "No printer" on the top and there is option to select printer
and paper settings etc..
I want to know how will this affect a report rendered by a crystal
viewer.
I have a web page with a crystal viewer rendering the report on the
page.
I build my application in one of my development machines and deploy it
| |
by: bthomas71chevy |
last post by:
I have just setup a WebServer and all the applications work fine, but
when every any of the applications try to generate a Crystal Report the
page errors out.
"File or assembly name CrystalKeyCodeLib, or one of its dependencies,
was not found."
I read that the 4 MSM files need to be moved to the a MERGE MODULES
folder in the Common Files folder, but didn't seem to do a thing.
|
by: Chris |
last post by:
I have the following situation in a VB.Net App I am working on:
1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003.
2.)The datasource for the report is a Stored Proc in a SQL Server DB (pull
method).
3.)The Stored Proc has two input parameters of type date.
4.)The Stored Proc is a rather complex proc that was not written by me, but
does work(see next item). It currently returns about 13K rows of data.
5.)The...
|
by: Altman |
last post by:
I am currently using ASP.Net 2003 and will be upgrading to 2005
sometime in the near future. I have been having issues with using
Crystal Reports that were included with .Net to handle my reporting
needs. I was wondering if anybody has an opinion on how the new
reportViewer control works in comparison to Crystal. One of the main
problems I have been having with Crystal Reports is that they seem to
load very slow no matter how small the...
|
by: John Smith |
last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of
Crystal Reports. Sometimes the users will preview a report in a
Crystal report viewer, and sometimes they will send the report directly
to the printer bypassing the Crystal report viewer altogether.
When sending the job directly to the printer I use the PrintToPrinter
command
CR.PrintToPrinter(1, False, 0, 0)
|
by: =?Utf-8?B?cmtibmFpcg==?= |
last post by:
How can I stop receiving this message while calling a crystal report?
"The report you requested requires further information."
Thanks
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |