|
hi
i want create ParameterField class in my app but i don't found it in crystalreport NameSpace, where it ?
and ReportDocument does not have a ParameterFields property.
Here is Code :
ReportDocument report = new ReportDocument();
report.Load(@"MyReportFile.rpt");
//i could not create ParameterField because i don't found it in crystal report namespace
foreach(ParameterField field in report.ParameterFields) {
if(field.ParameterFieldName == "MyName") {
field.CurrentValues.Add(MyDateValue);
}
}
|
|
|
|
|
Make sure you are using the right namespaces.
I have the following using statements in my sample
<br />
using CrystalDecisions.CrystalReports.Engine ;<br />
using CrystalDecisions.Shared ;<br />
using CrystalDecisions.Windows.Forms ;<br />
Also, make certain you are referencing the right assemblies. The following are ref's in my project
<br />
CrystalDecisions.CrystalReports.Engine<br />
CrystalDecisions.ReportSource<br />
CrystalDecisions.Shared<br />
CrystalDecisions.Windows.Forms<br />
The full path/classes are
<br />
CrystalDecisions.CrystalReports.Engine.ReportDocument<br />
CrystalDecisions.Shared.ParameterField<br />
The sample I sent you works with Crystal Reports XI R2, but was the same in CR X.
|
|
|
|
|
Is this doable?
We're looking to develop an application that allows you to enter a domain (www.thewebsitename.com) and have the application return a list of all pages associated with that domain. (www.thewebsitename.com/allthesepages).
sanjeev
|
|
|
|
|
|
thanks for reply.......
can i have the pleasure to know how.....(please dont say that google has done it....... .coz i know that )
|
|
|
|
|
I don't usually hand feed people that ask broad questions, like can this be done. The solution is fairly simple if you think about the process(es) necessary to achieve this goal.
Start thinking of your problem from a broad view:
1 - I need to find a way to traverse through each page on a website.
Then break it down from there:
1.1 - Find methods I can use to traverse the site.
1.1.1 - retrieve the main page and traverse all on-site links
1.1.2 - find a method to find pages that are not linked to main site.
1.1.3 - ..... etc.
|
|
|
|
|
Strictly speaking, you can't.
What you can do is retrieve all of the pages that are linked to within the domain.
If there are no links to a page, then it won't get indexed.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
got some header file to some dll - its C++ i need convert it to C#, and it is a problem for me.
How i should write it in c#:
#define FAPI_NUMBER_LENGTH 32<br />
#define FAPI_FILE_LENGTH 128<br />
#define FAPI_NOTE_LENGTH 1024
and this:
typedef struct {<br />
int m_ConditionFlag;<br />
int m_Line;<br />
int m_CallTypeFlag;<br />
time_t m_FromDateTime;<br />
time_t m_ToDateTime;<br />
char m_RemoteNumber[FAPI_NUMBER_LENGTH];<br />
char m_LocalNumber[FAPI_NUMBER_LENGTH];<br />
char m_Note[FAPI_NOTE_LENGTH];<br />
int m_UserData;<br />
int m_Limit;<br />
int m_Offset;<br />
int m_OrderBy1;<br />
int m_OrderBy2;<br />
} FAPI_Condition;
Greetings
|
|
|
|
|
The translation is almost the same. The define should work fine, and for the struct; Just remove the typedef and make your srtuct without it.
about time_t members of the struct, pass it as long.
Regards
|
|
|
|
|
You can use the long (or int) and convert it to DateTime:
int t= 1070390676; // value of time_t
System.DateTime dt= new System.DateTime(1970,1,1).AddSeconds(t);
|
|
|
|
|
Is this doable?
We're looking to develop an application that allows you to enter a domain (www.thewebsitename.com) and have the application return a list of all pages associated with that domain. (www.thewebsitename.com/allthesepages).
|
|
|
|
|
You can ask a question once. By posting the same question 3X, it might get ignored.
|
|
|
|
|
Is this doable?
We're looking to develop an application that allows you to enter a domain (www.thewebsitename.com) and have the application return a list of all pages associated with that domain. (www.thewebsitename.com/allthesepages).
Sanjeev
|
|
|
|
|
You can ask a question once. By posting the same question 3X, it might get ignored.
|
|
|
|
|
I POSTED IT IN THREE DIFF PLACES TO GET A WIDER RANGE OF SCHOLARS TO ANS MY QUE........IT WAS URGENT FOR ME AND NOT WRONG I THINK
|
|
|
|
|
The "SCHOLARS" you seek are smart enough to see one post. They don't need 3. All posts here are important to the person posting it. Most are urgent requests caused by some business request. This board is a community that gives answers to people who have attempted to program a specific task and are stuck.
|
|
|
|
|
sharma sanjeev wrote: I POSTED IT IN THREE DIFF PLACES
First, please don't shout. It is considered rude.
You posted this question three times in one forum in the space of a couple of minutes.
|
|
|
|
|
it was my mistake........apologies from my side ....
|
|
|
|
|
hello,
can i some how sleep a process in an application?:
my problem is i want to execute a sql string.
if it failed i want wait some (milli)seconds before i repeat the execution
thank you
|
|
|
|
|
Hi,
use a sleep(x); in your function
Regards
|
|
|
|
|
but where can i find it?!
|
|
|
|
|
Call
Thread.Sleep(1000); to sleep for one second. Yet, if you do this in your main Thread, this will cause your UI to freeze.
Regards
|
|
|
|
|
hi!
use
Thread.Sleep(5000); // this will sleep the thread for 5 seconds
abhinav
|
|
|
|
|
yes, thank you.
thats it.
|
|
|
|
|
how do you create a control array in C#?
|
|
|
|