Click here to Skip to main content
15,860,972 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl19-Apr-05 11:35
Scott Serl19-Apr-05 11:35 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim20-Apr-05 3:50
Snowjim20-Apr-05 3:50 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl20-Apr-05 8:29
Scott Serl20-Apr-05 8:29 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim20-Apr-05 8:40
Snowjim20-Apr-05 8:40 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl20-Apr-05 11:04
Scott Serl20-Apr-05 11:04 
GeneralRe: Writing and Reading on MemoryStream? Pin
Snowjim20-Apr-05 11:42
Snowjim20-Apr-05 11:42 
GeneralRe: Writing and Reading on MemoryStream? Pin
Scott Serl21-Apr-05 8:22
Scott Serl21-Apr-05 8:22 
GeneralCrystalReports From Pull -> Push Pin
V.18-Apr-05 23:49
professionalV.18-Apr-05 23:49 
Hi,

In our project we want to be able to load a report from file,
try to rebuild the query (adapt if necessary)
create a dataset from that query
set the dataset as source of the report.

Now I can create the query (more or less Wink | ;-) ), but when I set the dataset to the datasource the report is still what it was in design.

I do something like this:
<br />
string query = "Select " + fields + " FROM " + tables + " " + whereclause + " " + groupby;<br />
txtbox_query.Text = query;<br />
DataBaseConnector.EXECUTE_STATUS dbstat = dbconnector.ExecuteSelect(query);<br />
if(dbstat == DataBaseConnector.EXECUTE_STATUS.EXECUTE_SUCCESFUL){<br />
  txtbox_status.Text = "The query " + txtbox_query.Text + " executed correctly.";<br />
  txtbox_status.ForeColor = System.Drawing.Color.Green;<br />
  reportdoc.SetDataSource(dbconnector.GetDataSet());<br />
  dg_select.DataSource = dbconnector.GetDataSet();<br />
}										//end if<br />
else{<br />
  txtbox_status.Text = "The query " + txtbox_query.Text + " failed.  " + dbconnector.GetLastErrorMessage();<br />
  txtbox_status.ForeColor = System.Drawing.Color.Red;<br />
}										//end else<br />
crv_test.ReportSource = reportdoc;<br />

the dataset is correctly set in my datagrid, but not in my report.
the report is loaded from file and the query is generated from that reportobject.

I hope somebody can help me Sniff | :^)
tnx!

No hurries, no worries.
GeneralFilling the Textbox Pin
Anonymous18-Apr-05 23:36
Anonymous18-Apr-05 23:36 
Generalplease help me with this Pin
snouto18-Apr-05 23:28
snouto18-Apr-05 23:28 
GeneralRe: please help me with this Pin
S. Senthil Kumar19-Apr-05 0:52
S. Senthil Kumar19-Apr-05 0:52 
GeneralTransparent ListBoxes Pin
zagzagzag18-Apr-05 23:24
zagzagzag18-Apr-05 23:24 
GeneralRe: Transparent ListBoxes Pin
Anonymous19-Apr-05 1:05
Anonymous19-Apr-05 1:05 
GeneralRe: Transparent ListBoxes Pin
Dave Kreskowiak19-Apr-05 4:19
mveDave Kreskowiak19-Apr-05 4:19 
GeneralRe: Transparent ListBoxes Pin
zagzagzag19-Apr-05 9:10
zagzagzag19-Apr-05 9:10 
GeneralMusic Programming Pin
Deniz Oflaz18-Apr-05 23:11
Deniz Oflaz18-Apr-05 23:11 
GeneralRe: Music Programming Pin
pjc*19-Apr-05 3:27
pjc*19-Apr-05 3:27 
GeneralRe: Music Programming Pin
RNEELY19-Apr-05 4:13
RNEELY19-Apr-05 4:13 
GeneralCreating OdbcDataAdapter object with Select statement that has spaces in the fileName Pin
chukkykzn18-Apr-05 22:58
chukkykzn18-Apr-05 22:58 
GeneralHigh CPU usage when using Toolbar Pin
MasudM18-Apr-05 22:24
MasudM18-Apr-05 22:24 
GeneralHelp -- TreeView, How to Sort only a Part of TreeView Nodes Pin
Umair Tariq18-Apr-05 21:18
Umair Tariq18-Apr-05 21:18 
GeneralRe: Help -- TreeView, How to Sort only a Part of TreeView Nodes Pin
CStiefeling19-Apr-05 8:30
CStiefeling19-Apr-05 8:30 
GeneralRe: Help -- TreeView, How to Sort only a Part of TreeView Nodes Pin
Umair Tariq19-Apr-05 20:41
Umair Tariq19-Apr-05 20:41 
GeneralRe: Help -- TreeView, How to Sort only a Part of TreeView Nodes Pin
CStiefeling20-Apr-05 11:59
CStiefeling20-Apr-05 11:59 
GeneralRe: Help -- TreeView, How to Sort only a Part of TreeView Nodes Pin
Umair Tariq20-Apr-05 20:00
Umair Tariq20-Apr-05 20:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.