|
We have a crystal report contains additional functions to get same text.
It works well if we exporting report to PDF file directly,
but display empty value if we preview report in Crystal Report Viewer.
We declare a global variable in one sub report,
it is a handle of an array, then we get same text from this global variable in other sub report.
any suggestion for this case?
Glad to discuss with you and best wishes.
|
|
|
|
|
Before the preview, is the ReportDocument.Refresh method called?
|
|
|
|
|
I tried add Refresh before preview, but it didn't work.
Glad to discuss with you and best wishes.
|
|
|
|
|
Is this possible??
I've tried all manner of possibilites including (but not limited to):
- "File:///C:/MyApp.exe" args1 args2
- "File:///C:/MyApp.exe args1 args2"
- "File:///C:/MyApp.exe%20args1%20args2"
- %22File:///C:/MyApp.exe%22%20args1%20args2
also tried with forward slash and backslash.
Any help is appreciated,
Adam.
|
|
|
|
|
Isn't it done using siwtches? /p etc
or using the -
myapp.exe -arg1 -arg2
?
Those look vaguely familiar?
|
|
|
|
|
Are you doing this in command line or from a program?
In both cases, you could simply remove the File:///. If command line, otherwise it's fine but if from program using Process.Start, you must separate the program and the arguments and deliver them as different parameters to the start method.
|
|
|
|
|
I have a DataGridView binded to this table:
[Users]
ID Name
-- ----
11 Qwe
22 Asd
Grid is directly binded with a typed dataset.
I have a second table like this:
[Records]
ID UserID Data
-- ------ ----
67 11 ....
68 11 ....
Records.UserID is connected to Users with a foreign key.
What I want to do is: when the user doubleclicks User #11 I open a new grid, binded to Records table but only binded to rows where UserID = 11 . Doubleclick, getting ID, new grid etc. those are I'm OK with. I wouldn't had any problems if I was doing this connected with sprocs but I want it to be binded and I simply have no idea how to do this.
Can you please give me any ideas?
|
|
|
|
|
I would use a dataview to service the records gridview.
When the user double clicks you set the rowfiler of the dataview
Dataview1.RowFilter = String.format("UserID = {0}",UserIDValue)
changing the filter of the dataview automatically updates the records gridview
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks for the reply. The problem with Filter is that you have to retrieve all of the records first, than display the ones according to filter. Is there a way to retrieve just the records you want in the first place?
|
|
|
|
|
kensai wrote: Is there a way to retrieve just the records you want in the first place?
But of course. You have the userid, create a proc that returns the records for that user and bind the resulting datatable to the datasource. Changing datasource is a standard operation!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Unfortunately, the database is Sql Server CE which doesn't support sprocs
I think I need a way to bind data to a tableadapter custom method which returns records according to a parameter, in this case ID. No idea how to do this though
|
|
|
|
|
How do you get your data now, presumably SQL strings if procs are not supported. What's wrong with the following.
Select * from Records where UserID = iUserID
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello All,
I have a problem with event that I am generating after file download.
The flow is like this
1.initialize the DownloadfileCompleted event handler.
2.DownloadFileAsync(URI,str2)
3.After download completed it should display "download complete"
4.return "downloaded successfully"
but the problem is if the downloading takes more time it is directly coming to step 4. without waiting for completeion of step 3.
how can i make step 4 to wait until completeion of step3..
Thanks in Advance,
Ashok
ashok
|
|
|
|
|
How does step 1 look like in code?
I are troll
|
|
|
|
|
1. objWebClient.DownloadFileCompleted += new System.ComponentModel.AsyncCompletedEventHandler(Event_DownloadFileCompleted);
2.objWebClient.DownloadFileAsync(new Uri(p_strSourcePath), l_strDestinationPath);
3.MessageBox.Show("Updated Successfully");
4.public void Event_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
MessageBox.Show("Download Completed");
}
ashok
|
|
|
|
|
I wrote same code before, it works well.
please check source file before download,
and you add try catch block to get whether exception.
Glad to discuss with you and best wishes.
|
|
|
|
|
To make it block the execution;
public bool downloadIsDone = false;
public void ZeDownloadMechanism()
{
objWebClient.DownloadFileCompleted += new System.ComponentModel.AsyncCompletedEventHandler(
Event_DownloadFileCompleted);
objWebClient.DownloadFileAsync(new Uri(p_strSourcePath), l_strDestinationPath);
while (!downloadIsDone)
Application.DoEvents();
MessageBox.Show("Updated Successfully");
}
public void Event_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
downloadIsDone = true;
MessageBox.Show("Download Completed");
}
Why would you want to block execution on a Async-download?
I are troll
|
|
|
|
|
ThanQ for your help, can u brief the differences between normal download and async-download?
ashok
|
|
|
|
|
Sync (normal) blocks execution, Async doesn't. Simple example, if you normally play a soundfile in VB6, then the computer will not execute anything until the sound is finished playing. If you play it async, the computer will "move on", and execute your next instruction.
Hope this helps
I are troll
|
|
|
|
|
Hello,
I have an issue regarding executing a file.
The file is exectued by a launcher and we want to modify this launcher.
Unfortunately the source code for this launcher has been lost and we do not know how to execute the file anymore.
Therefore the launcher must be totally recreated, which has been done up to this single part...
Is it somehow possible to find out how to execute this file?
Or better asked: Is it possible to find out what command the launcher sends to execute the file?
Any solution to find this out would be nice!
I can already tell it is executed with several arguments by the launcher.
I thank you sincerely in advance,
OsoreWatashi
|
|
|
|
|
What language was this launcher written in? You can't use a decompiler such Reflector to take a look? Is their any documentation available for the exe? Have you run it on a commandline with a /? arguement?
I would also suggest source control in the future.
only two letters away from being an asset
|
|
|
|
|
Create a console-application that writes all the parameters that are passed to it, to a plain text-file. Next use the launcher on your new console-application. You now have a text-file that holds all the parameters that the old launcher sends when starting an application.
Hope this Helps,
I are troll
|
|
|
|
|
I already tried that before posting the question here.
There are no parameters passed to the .bin file recording to the parameters list.
Though I am very sure there are a few argument passed, named:
IP PORT
Through HexEditing I can find there is a third argument something like an ID.
The IP and PORT arguments are not the problem and are known by the development team, the ID is not and we do not know the syntax used to construct this ID.
Therefore my question if it is possible to retrieve this.
The launcher does execute te file in question and if I replace it by my custom console application, it does launch the console application.
The result is no parameters at all with a simple foreach-loop...
It is for sure there are arguments passed to the .bin executable, because it gives a message when it does not receive those.
Maybe you have another suggestion?
Yours sincerely,
OsoreWatashi
|
|
|
|
|
There is no documentation on how this ID is generated? That's going to be though to re-engineer
I are troll
|
|
|
|
|
Indeed there is no information on the arguments passed to the .bin file to execute it.
If we are only able to see what gets passed in as arguments, we are able to reverse enginere the generation of the ID without too many problems.
|
|
|
|