|
The error is telling you that the object isn't initialized. And it is right.
Change your code to the following:
impbonrecepReport = New ReportDocument()
Dim reportPath As String = Application.StartupPath & "\" & "ImpBonReception.rpt"
impbonrecepReport.Load(reportPath)
SetCurrentValuesForParameterField(impbonrecepReport, myArrayList)
CrystalReportViewer1.ReportSource = impbonrecepReport
Initialize and load your report first, then set the parameter value's and then show it.
You'll also have to change
ByVal myReportDocument As ReportDocument
to
ByRef myReportDocument As ReportDocument
Or make the sub into a function and return the report at the end.
Basicly you passed an empty object to the 'SetCurrentValuesForParameterField'.
|
|
|
|
|
Can I use the IDispatch::Invoke interface of an ActiveX control to retrieve specific data? The control in question is a Siebel List control and I want retrieve the value of a given cell in a specific column or set of columns. Is this possible?
Thank you in advance,
Caeanis
|
|
|
|
|
I have an MDI application. In it, I have a panel docked to the top as a 'header' and a flowlayoutpanel docked to the right for a menu. This leaves everything else to be the MDI container for children forms. Everything works well here, and while polishing off the application I decided to set a background image for the MDI container.
Great, looks great.
There is a button which will shrink the menu to expand the MDI container area, but for some reason, despite my background image being set to stretch, it is never repainted and I get a very awkward background. This applies for when you stretch the MDI container by using the horizontal and vertical scroll bars.
Anyone know how I can force the background to be repainted when my application is resized or controls are hidden / expanded to 'grow' the MDI container?
If requested, images will follow to demonstrate behavior.
|
|
|
|
|
From Your MDI-Form LOAD()
Dim Img As Image = Image.FromFile("C:\Eliotta\For_icons\Saudi_Sea.jpg")
Me.Controls(Me.Controls.Count - 1).BackColor = Color.LavenderBlush
Me.Controls(Me.Controls.Count - 1).BackgroundImageLayout = ImageLayout.Stretch
Me.Controls(Me.Controls.Count - 1).BackgroundImage = ResizeImage(Img, Me.Width, Me.Height)
end sub
Private Function ResizeImage(ByVal Img As Image, ByVal Width As Integer, ByVal Height As Integer) As Image
Return New Bitmap(Img, Width, Height)
End Function
|
|
|
|
|
Hi all.
How to check whether system is going to log-off or shutting down in vb.net
suggest me.
Thanks.
Gagan
|
|
|
|
|
Hi,
The Microsoft.Win32 namespace has a SystemEvents class containing a SessionEnding event. The associated SessionEndingEventArgs has a Reason property which can have a value of Logoff or SystemShutdown. I think that's what you need.
Alan.
|
|
|
|
|
Thanks for your reply.
I think that would work.
|
|
|
|
|
Hi all.
I want to get all files information stored in a network directory.
Suppose I have a website www.abc.com and it has a directory say www.abc.com/temp/
Now I want to get all the files stored in that temp directory.
Suggest me how can I do this?
Thanks.
Gagan
|
|
|
|
|
Log in through FTP and get the directories or files available, if it is a webserver and you're trying to get the contents of that directory, typically if there is no index file it will show you a list of files and directories available. If there is an index file, as far as I know you're out of luck.
|
|
|
|
|
Thanks for your reply.
Yes it is a webserver and I am trying to get the contents of that directory but I don't know what exactly to do so.
Can you explain with some piece of code??
Thanks.
Gagan
|
|
|
|
|
Hi
I have to create a windows application which can connect to a remote host through SSH and can perform some operations on the remote host.
remote host is a cisco router 3745
Problem I am facing is which ssh client to use and how to use in the application.
If anybody knw please update me @ himanshu_agarwal@live.com / himanshu.agarwal@gmail.com
|
|
|
|
|
|
My problem is that i want to know the web sites open in my network's pc
so that i could monitor all the web site open on that computer.
i want to develop a desktop application that will be install on each machine and will keep the url information and at particular time it will send an email containing all the requested URLs.
Please help and guide me.
|
|
|
|
|
Surely all this information is already available to the network administrator in various logs.
This has more than a wiff of malicious software .
|
|
|
|
|
Either that or 1984 might be good reading for him.
My advice is free, and you may get what you paid for.
|
|
|
|
|
I think he either uses it to put himself to sleep or thinks we are complete idiots. No doubt someone will point him to an article that will allow him to do this.
|
|
|
|
|
Actually there is a client, he wants to monitor all the web request, he don't wants to go on particular machine but he wants to receive an email containing that URI/URLs. it is totally new task for me and i thought that code project family member can do everything that's why i need your help.
so tell me is it possible by vb.net programming or not.
Thanks
|
|
|
|
|
Sumit Prakash Sharma wrote: Actually there is a client
here's the crux of it coming....
Sumit Prakash Sharma wrote: it is totally new task for me
... won a contract but doesn't know how....
So try google, there should be something there
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Actually i don't take contract for this task, i want to reply him that it is possible or not. if possible then i will take contract from him.
|
|
|
|
|
You can have a service that will read the url from the browser and collect it somewhere. Then at a predefined time, it can get all of that and send it in email.
Do not rely on checking history since, user can clear it any time and you wont get correct result.
Google would tell how to get the url from browser.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
This is what a proxy server is for. You don't install something like this on every client PC. You set it up between your clients and the Internet. The clients browsers would have to do through the proxy to get at the Internet. The proxy does all the filtering for blocked sites and can log all activity.
|
|
|
|
|
So your client doesn't know how to use his proxy server, can't be bothered to look in the help, and you have agreed to provide him with something he already has. Monitoring this on each PC is insane when there are already server logs and reporting built in to all proxy server software to give him the information he wants. Or does you client have every machine in the office separately connected to their own individual internet connections?
This is a basic network administration task not a programming exercise.
Plus of course while you can monitor browser activity and send the visited URL list to someone, that is definitely Hacker territory. Such software exists already and are known as trojan horse viruses, malware etc.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
Thanks for your kind reply
|
|
|
|
|
Mycroft Holmes wrote: This has more than a wiff of malicious software
I don't get that point. How can reading internet history or the current url be malicious? I dont see any extremely important data in URLs which needs to be secured from others. If it was the case, why keep it in url in first place.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
There are existing tools for achieving this, any semi competant network administrator knows how and where to set this type of monitoring up. The person wants to create a monitoring system outside the standard channels that will periodicalyy email all the URL to ... someone. While it may not be malicious it feels that way to me.
If I manage to get that app onto your machine, I get all the URLs you visit, I now know your social profile and any online banking sites you visit. I can tailor a phishing attack directly at you. Scuse me while I just go and get my foil beanie but I recently got an email from my daughter inviting me to facebook, the only clue was that she did not use her married name and sure enough there was a trojan at the other end of the link.
If this is innocent I am willing to appologise, but I will not help this person. As Bob said, he got the contract with no knowledge how to acheive the clients needs.
Never underestimate the power of human stupidity
RAH
|
|
|
|