|
try this:
crReportDocument.SetParameterValue(ParameterName, Value)
|
|
|
|
|
Works a treat now.
A big thank you and have a great weekend.
|
|
|
|
|
Central_IT wrote: Works a treat now.
A big thank you and have a great weekend.
If you are that pleased then at least have the courtesy to give the guy a 5 vote!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have a vb.net application that has to be published on the server to a specified path.
After publishing, when I try to install the application, I get the below error msg:
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of \\agbvseng14\datas\SOFT\Easy_ECN\Nouveau dossier\EASY ECN.application resulted in exception. Following failure messages were detected:
+ Downloading http:
+ Unable to connect to the remote server
+ No connection could be made because the target machine actively refused 180.30.4.18:80
Not sure how to handle this problem.
Any suggestions will be helpful.
Thanks in advance.
modified on Monday, November 29, 2010 7:47 AM
|
|
|
|
|
Your server machine refused the connection for some reason. What's the O/S the server (agbvseng14) is running? Which version of IIS is it running?
|
|
|
|
|
Dave
Is it the server machine that refused the connection or the local machine that has the application refused the connection.
Because, "+ Downloading http://bue479/EASY ECN/EASY ECN.application did not succeed." is my machine, that has the application on it.
Thanks
|
|
|
|
|
Whoops - my bad. I has the right thought though, just typed the wrong name.
|
|
|
|
|
The OS of the server is Windows Server 2003.
|
|
|
|
|
OK, check this page[^].
Is your user sitting behind a proxy that requires authentication?
Try turning off the firewall on the workstation (if present) and see if it installs.
|
|
|
|
|
The below is the appropriate error msg i get:
Application installation did not succeed. Cannot locate applications files on the server. Contact the application publisher or your administrator for assistance.
One or more files in the deployment cannot be downloaded because you do not have permission to access them. This can be caused by a 403 Forbidden error being returned by a Web server, which may occur if one of the files in your deployment ends with an extension that makes the Web server treat it as a protected file. Also, a directory that contains one or more of the application's files might require a username and password in order to access.
Thanks for the link.
|
|
|
|
|
The users gets a dialog box with an error and a Details button. Click the details button and you've get much more information to disagnose the problem.
Your client doesn't have a clear network path to the server or the configuration of the server isn't correct. I don't have enough information to be able to diagnose this over a forum post.
I've already given you a link to the most common problems. It's up to you to do the work and make sure none of those possibilities is the problem.
|
|
|
|
|
hello,
sorry if i'm mispost to this thread, i can't find where to post.
anyway, my problem is i have an access code which will convert to access report to pdf which is ConvertReportToPDF by Lebens code and it is 99% working. 1% problem is, it can't read the unit name such as mg/,μg/c㎡μg/kg,μg/,,㎟/s,,kg/㎡ , etc..
so that is why i need another solution on how to read this kind of fonts when printing to pdf.
help me.
thanks
p.s: i used access 2000
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
It seems that you're not the only one having problems with that library. Why don't you use a different PDF Printer[^] and just print the report to a PDF file?
|
|
|
|
|
thanks for your reply.
problem solved. my boss wants to print access report to pdf automatically but i explain to him that there is a problem on library. so i go to your suggestion that print the report to pdf using pdf printer and its ok for now. i just added code that will set default printer to pdf printer then restore default printer after print to pdf and automatically close pdf file after click save button.
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Hi,
I would like know how I can close a MDI form from a menu while I click on another MDI form.
I have menu with 4 MDI forms. for example A,B, C, D. Load A, it opens, decide to open B, Once B is open, A form should close or any other MDI form that opens, should now be closed.
Any guidance will be very helpfull.
Thanks..
|
|
|
|
|
You'll have to have a collection that your Child forms reside in and contains which forms are open. Frankly, it doesn't sound like you're application is really a candidate for even being an MDI application.
|
|
|
|
|
Hi,
I have an Arm_View(ID, TypeID, Type,Mark, Model) on MDI Form and two comboboxes
TypeCombox binding with Type_viewBindingSource,Display Member(TypeName), Value Member(TypeID),
Selected Value (None)
MarkCombox binding with Mark_viewBindingSource,Display Member(MarkName), Value Member(MarkID),
Selected Value (Type_viewBindingsource-TypeID)
When I click on the TypeCombox for a type, the corresponding Mark shows on the MarkCombox and the Arm_view shows the correct record. But when I try to move away the TypeCombox, the cursor locks, I cannot move away from it.
On Load_event, I load only Arm_view and Type_view and set both of the comboboxes to null..
On TypeCombox_TextChanged, I load Arm_view by Type from the TypeCombox.text
On MarkCombox_TextChanged, I load Arm_view by Mark from the MarkCombox.text
Thanks a lot in advance
|
|
|
|
|
I don't know for this particular case, however in my experience some of the XyzChanged events in .NET also fire when a value gets assigned that is identical to the current value (so their name isn't really accurate!), so it *could* be that your one TextChanged event is firing the other and vice versa, resulting in a never ending loop (or even a stack overflow if you would have a DoEvents in there somewhere).
I suggest you try and break the loop by explicitly checking for a change inside the TextChange event, which probably means you need to add a class variable that holds the previous value. In pseudo-code (which may look a lot like C#) this would be:
class Qwe {
private string oldType;
TypeCombox_TextChanged(...) {
string s=TypeCombox.Text;
if (s != oldType) {
oldType=s;
}
}
You may or may not want to do similar stuff on MarkCombox_TextChanged, in a simple case like this it should not be necessary though.
|
|
|
|
|
Hi,
I am lost from what you suggested but I am suspecting that it has to do with the binding property or column TypeName on the datasource which also causes the form from closing. It throws an exception that cannot bind property or column TypeName on the datasource.
Thanks
|
|
|
|
|
Sorry, I didn't pay attention enough to the bindings. I haven't done this myself with bindings, I trust the idea remains the same (avoid the loop of events), the execution will have to be slightly different. I hope somebody will be able to give you more precise instructions, IMO it boils down to "don't set a binding again that has already been set".
|
|
|
|
|
Hi,
Once again thanks..I think I solve this issue..what I notice now is that on the MarkComboBox, it shows multiple marks of the same kind whereas I only want to show one mark..
thanks again
|
|
|
|
|
Hello,
I am not able to convert this function to VB code....
This is the javascript function to get the last digit of a GTIN number:
factor = 3;
sum = 0;
var gNum = '1234564020233'
for (index = gNum; index > 0; --index) {
sum = sum + gNum.substring(index - 1, index) * factor;
factor = 4 - factor;
}
cc = ((1000 - sum) % 10);
result = gNum + cc;
}
I have the problem to deal with the substring function.
Anyone can help?
|
|
|
|
|
OK, JavaScript substring returns the string enclosed by the start and ending values. In your case that would be index - 1 , and index . It appears that index starts out with the length of the string in gNum and goes backwards by -1 with each iteration.
|
|
|
|
|
factor = 3
sum = 0
Dim gNum As String = "1234564020233"
For index = gNum To 1 Step -1
sum = sum + gNum.Substring(index - 1, index - (index - 1)) * factor
factor = 4 - factor
Next index
cc = ((1000 - sum) Mod 10)
result = gNum + cc
David Anton
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
|
|
|
|
|
Hi David,
I got this error:
System.Data.Index' is not accessible in this context because it is 'Private'.
|
|
|
|