|
I have a project done in VB.net, that I just cannot make work. Would someone be willing to let me e-mail it to them and explain to me how to fix it. TIA
|
|
|
|
|
if you could explain it little more then it would be easy for us to do this.
by the way you can mail me the project at
rbashir@alm-soft.com
|
|
|
|
|
Rizwan Bashir wrote:
by the way you can mail me the project at
rbashir@alm-soft.com
i don't agree, the question is public, that means everyone can answer, but also everyone could read the issue of the problem....
if one answer by e-mail, so we lose badly this point of view...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Dont worry you will get the solution and problem in the forum once I come to know the bug ..
so just relax
|
|
|
|
|
Based on experience, this tends not to happen, which is why people are often warey of answering directly by email. I certainly don't. I always refer people back to the forum. I have been toying with the idea of charging a consultancy fee for private off-forum assistance, but I just don't think that will work either.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
well Guys its time to disclose the problem. the guy was new and wanted help in building a form. well I told him to read some books and solve the problem. You can also do so . if the problem presist contact me for technical support
cheers..........
|
|
|
|
|
|
hello, can someone tell me how to add coding to every button in a toolbar please?? Thanks for your feedback!
Adrian
|
|
|
|
|
double cclick on the toolbar and in the event opened use this
If e.Button Is tbButtonName Then
msgbox "tbButtonName is clicked"
ElseIf e.Button Is tbBtnTest Then
msgbox "Test Button is clicked"
end if
' where tbButtonName and tbBtnTeSt are the names of button on toolbar
|
|
|
|
|
thanks alot!! now how can i separate button from a button? seperate from distance!
Adrian
|
|
|
|
|
I dont think you can do this...if any one knows lets wait for his reply
|
|
|
|
|
just add another button to the toolbar and set it's style to separator. you acn add as many as you'd like to increase the size of the separation.
-jim
|
|
|
|
|
How to pass the value from vb to crystal report?
For example value text in textbox = "Company" can appear in my crystal report.
Thanks
|
|
|
|
|
Make Parameter and pass the values to display..
.. I have copied this code from my project and removed couple of parameters to make it easy. if any line is extra or has not concern it means I for got to delete that...
' note ::: crpt is the crystal report component...
Dim opt As New report1
Dim paramFields As New CrystalDecisions.Shared.ParameterFields()
Dim paramFieldsRoom As New CrystalDecisions.Shared.ParameterField()
Dim paramField As New CrystalDecisions.Shared.ParameterField()
Dim discreteValTotal As New CrystalDecisions.Shared.ParameterDiscreteValue()
paramFieldsTotal.CurrentValues.Add(discreteValTotal)
paramFieldsTotal.ParameterFieldName = "TotalPages"
crpt.ParameterFieldInfo.Add(paramFieldsTotal)
opt.Load()
opt.Refresh()
' if any selection formula
' opt.RecordSelectionFormula = SelectionFormula
crpt.ReportSource = opt
crpt.Show()
|
|
|
|
|
The paramfields, paramfieldsroom etc will appear in "Parameter field" at crystal report design right?
|
|
|
|
|
|
Can i know what value you pass from your code?
|
|
|
|
|
use MSDN write Parameters and in the list check crystal you will get some code. this is also from there
Dim paramFields As New ParameterFields()
Dim paramField As New ParameterField()
Dim discreteVal As New ParameterDiscreteValue()
Dim rangeVal As New ParameterRangeValue()
' The first parameter is a discrete parameter with multiple values.
' Set the name of the parameter field, this must match a
' parameter in the report.
paramField.ParameterFieldName = "Customer Name"
' Set the first discrete value and pass it to the parameter
discreteVal.Value = "AIC Childrens"
paramField.CurrentValues.Add(discreteVal)
' Set the second discrete value and pass it to the parameter.
' The discreteVal variable is set to new so the previous settings
' will not be overwritten.
discreteVal = New ParameterDiscreteValue()
discreteVal.Value = "Aruba Sport"
paramField.CurrentValues.Add(discreteVal)
' Add the parameter to the parameter fields collection.
paramFields.Add(paramField)
' The second parameter is a range value. The paramField variable
' is set to new so the previous settings will not be overwritten.
paramField = New ParameterField()
' Set the name of the parameter field, this must match a
' parameter in the report.
paramField.ParameterFieldName = "Customer ID"
' Set the start and end values of the range and pass it to the 'parameter.
rangeVal.StartValue = 42
rangeVal.EndValue = 72
paramField.CurrentValues.Add(rangeVal)
' Add the second parameter to the parameter fields collection.
paramFields.Add(paramField)
' Set the parameter fields collection into the viewer control.
crystalReportViewer1.ParameterFieldInfo = paramFields
crystalReportViewer1.ReportSource = "c:\reports\my report.rpt"
|
|
|
|
|
I can display simple discrete value already, but when i refresh crystal report viewer why there is pop up message to input the discrete value again? I wan to remove this.
And for range value i failed, what is it for? when it is displayed what we can see?
|
|
|
|
|
you are missing some parameter to pass. the value which are getting prompt is the one. if you have assigned this value in parameter then I guess you missed to assign parameter to the report. you are creating a parameter vaue but not attaching it to the report
|
|
|
|
|
SqlDataAdapter2.Fill(DataSet21, "accounts")
crystalReport11.SetDataSource(DataSet21)
Dim pFields As New ParameterFields
Dim pField As New ParameterField
Dim disVal As New ParameterDiscreteValue
Dim rVal As New ParameterRangeValue
pField.ParameterFieldName = "Test"
disVal.Value = "CodeProject"
pField.CurrentValues.Add(disVal)
'rVal.StartValue = 150
' rVal.EndValue = 200
'pField.CurrentValues.Add(rVal)
pFields.Add(pField)
CrystalReportViewer1.ParameterFieldInfo = pFields
CrystalReportViewer1.ReportSource = crystalReport11
============================
Above code i have not make use of range value yet.
Parameter Filed named "Test" is the one i create in crystal report at design time and i drag and drop this field somewhere in my report design. First I load it is fine and display CodeProject and when i press refresh button from crystral report viewer, a dialog box pop up and ask me to input discrete value again where it suppose show CodeProject again and no need user input anymore. and i guess i have assing value to the parameter. or not?
|
|
|
|
|
Confirm one thing. creating Report there is an option save data with report in file menu. uncheck that .. other wise it is working fine with me.
|
|
|
|
|
Do u mean file menu at toolbar? i cant find to uncheck option save data.
Are u sure when u press refresh button at crystralreportviwer there is no dialog box pop up said u need to input discrete value again>?
can set this use code?
|
|
|
|
|
as far the menu is concerned it is if you are building the report in crystal report designer then it will work. in other case dot net plateform I dont think this is required.
Yes I reloaded the project ran the report and click refresh and no dialog appeared. I dont know why it is coming at your end. I used crystal 9 and crystal 10 both have no problem in refreshing. Well I gues if you still have the problem then put it in the forum with this issue may be some one can guide you properly as I am missing any point
|
|
|
|
|
How can i write in betwwen a file.Lile i am searching for a string in afile and once that string is found it should right in the next line .
smita
|
|
|
|