|
I want to open a programme (I created) from an email (sent with the programme)
Sending the email is no problem
Putting a link in it that starts the programme (and passes a few parameters) works but only if I select the programme the first time (after that it works without a problem)
The programme in question will be installed in the same directory on every pc.
At the moment I'm simply passing a link to the body of the mail (html mail)
Link:
'path to programme' ID=Search
(ID=search is the parameter passed)
Is there anyway to do this so that I don't have to select the programme the first time?
Google and a search here didn't turn up anything regarding this.
|
|
|
|
|
If I'm understanding you correctly, you could create a windows service which process incoming email.
You would then have the service fire off a couple different apps/processes depending on the content of the email.
Not that bad to do really.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Yes and no
The user (reciever) has to click the link
Basicly the mail is to notify the receiver that there is a new entry in the DB and the link tells my programme to do a search in the DB and display the results.
So I can't use an automatic handling of the mail
|
|
|
|
|
Tom deketelaere wrote: Is there anyway to do this so that I don't have to select the programme the first time
What do you mean by "select the program the first time"??
|
|
|
|
|
The very first mail that the user gets doesn't work.
After clicking on the link the user gets an openfiledialog where he then can select the exe (from my programme).
After he has done this once everything works and keeps working.
|
|
|
|
|
OpenFileDialog?? What does the HTML link look like??
|
|
|
|
|
its a hyperlink to an exe
link:
'c:\prog\progname\progname.exe' ID=Searchterm
(with the ' s)
So basiscly it has to start progname.exe and pass the parameter ID=searchterm
|
|
|
|
|
I was looking for the entire <A HREF><A> tag. Just remember to click the "Ignore HTML tags in this message" box before you click Post Message.
|
|
|
|
|
don't have it here at the moment (I'm home) I'll post it first thing tommorow morning
|
|
|
|
|
the entire link:
<a href="'c:\prog\JORODOCBEHEER\documentbeheer.exe' ID=eID Arena">Klik hier om het document te zien</a>
|
|
|
|
|
OK, at the very least, you have to change the command line string. I think you'll have to replace the double-quote marks in this string with that HTML-friendly counterparts. But, the command line (inside the HREF quotes) should look more like (no single quote marks):
"c:\prog\JORODOCBEHEER\documentbeheer.exe" "ID=eID Arena"
Unless your intent is to pass 2 parameters to the .exe instead of one. The double quotes marks tell the shell to treat everything inside them as a single entity. This is because spaces are treated as a delimiter. So, in your original code, you are passing two parameters to the .exe.
|
|
|
|
|
I'm a bit further (after alot of trial and error)
I'm able to start the programme (there still is a warning box but that's not important)
However I'm not able to pass any parameters
The code that writes the html tag (its vba integrated into outlook):
<pre>
url = "file:///" & progpath
body = "Klant: " & Niv1Keuze.Text & "<br/>"
If Len(Niv2Keuze.Text & "") <> 0 Then body = body & "Niveau 2: " & Niv2Keuze.Text & "<br/>"
If Len(Niv3Keuze.Text & "") <> 0 Then body = body & "Niveau 3: " & Niv3Keuze.Text & "<br/>"
If Len(Niv4Keuze.Text & "") <> 0 Then body = body & "Niveau 4: " & Niv4Keuze.Text & "<br/>"
If Len(Niv5Keuze.Text & "") <> 0 Then body = body & "Niveau 5: " & Niv5Keuze.Text & "<br/>"
body = body & "<a href=""" & url & """>Klik hier om het document te zien</a>"
</pre>
this gives the html tag:
<a href="file:///c:\prog\JORODOCBEHEER\documentbeheer.exe">Klik hier om het document te zien</a>
This works but when I put a parameter after it I have the same problem as before.
I tryed to put the parameter between quote's, double quote's.
I tryed to put both the url and parameter between quote's, double quote's
I tryed using " (html code for ") and “ (html for left ")
Nothing worked
when I try to run the command (start - run)
I have to give in the following:
"file:///c:\prog\JORODOCBEHEER\documentbeheer.exe" "ID=Nieuw document - Klanten"
This works from start-run but when I put it in the html tag I get the openfiledialog box again
Any idea's would be very much apriciated (and thank you for your time and help so far)
|
|
|
|
|
Hii. I am currently trying to integrate a asp.net(VB) website with quickbooks. Below is the code.
Dim sessionManager As New QBSessionManager()
Dim requestMsgSet As IMsgSetRequest
Dim x As Integer
Try
sessionManager.OpenConnection2("", "QB Integration", ENConnectionType.ctLocalQBD)
sessionManager.BeginSession("C:\Program Files\Intuit\QuickBooks Accountant 2005\SA Outsourcing.QBW", ENOpenMode.omDontCare)
requestMsgSet = getLatestMsgSetRequest(sessionManager)
on the line
sessionManager.BeginSession("C:\Program Files\Intuit\QuickBooks Accountant 2005\SA Outsourcing.QBW", ENOpenMode.omDontCare)
it fails with "Could not start quickbooks"
Can someone please give me a reason for this. I've tried evrything I could think of user rights ect. and I have run the reboot.bat file as well nothing works
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
I wonder if the Quickbooks people have a forum where you can ask, as this appears to be an issue with their integration, not a general VB question. You may find someone here who knows the answer, I'm just thinking that a QB forum would have more in it.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
Thanks
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
Hi Everybody!
I have an excel file witch has created one button called "button1" and I´d like to remove it from an application made in vbnet 2005.
Anybody knows a solution to make it?
Thanks in advance
|
|
|
|
|
There should be an article here somewhere on codeproject ... look for "correctly hidding windowsxp start button" ... it should give you an idea about what you should do.
|
|
|
|
|
Hi
I have a VB6 ActiveX that displays a form with some controls: text box, buttons, radio buttons, Sheridan date control.
I call this form from a C# Windows form. This is done by a) adding a reference to the COM object b) instantiating the object c) Calling a method that displays the form.
The problem is that when the form is displayed, the controls style changes:
a) The text box becomes flat (not 3D)
b) The command button edges are rounded
c) The date control shows squares and funny shapes instead of numbers
d) The raduo buttons, that are located inside a frame, are black.
a and b are no big deal, c & d are obviously serious problem.
If I display the form from a C# console application then there is no problem: the controls look exactly as they do in the VB design. Also, if I compile the form to an EXE and call the EXE from a C# windows form, there is no problem.
It wasn't always like that: this problem started only recently, possibly as a result of Windows update, service pack... I am not sure what.
Does anyone know of a way to fix that, or some Windows settings to fix the problem?
|
|
|
|
|
Did you enable Visual Styles in your C# app?? Just a guess, but it's the only other thing I can think of that would change.
If you suspect it's a service pack or patch, build a test machine to verify this, without the suspected patches and service packs. THen add each one until the problem shows up.
|
|
|
|
|
Thanks for that Dave.
I didn't enable Visual Styles.
I did find that if I go to My Computer | Properties | Advanced | Performance | Visual effects , and turn off "Use visual styles on windows and buttons", then it solves the problem with most of the controls I mentiod - text boxes, buttons, radio buttons. The only control I have a problem with now is the Sherida Calander control. I will look for a solution for this one now.
|
|
|
|
|
Replacing the Sheridan date control (SSCalendarWidgets_A.SSDateCombo) with the Microsoft Date Picker (MSComCtl2.DTPicker) solves the problem. But now I noticed there is a similar problem with the Sheridan grid: when a line is edited, the content of the field in focus is garbage
|
|
|
|
|
Hello Guys!!!
I m doing a program base on AxMSChart now i m working on that. Here a problem arrived
When the row count is increase high then it is start flickering why it is happening some give me solution.
Now i m assigned it
AxMSChart.Rowcount=5000
Ananda.
|
|
|
|
|
non-bugging Errors wrote: When the row count is increase high then it is start flickering why it is happening
It happens because you're adding too much information to the chart control, probably more than what's needed to render the graph, and it's spending most of it's time processing and drawing all that data instead of showing the final graph image on the screen.
If you're using VB.NET, I highly suggest using a third party charting library, like ZedGraph[^].
|
|
|
|
|
or if using 3rd party tools is out of hand try ControlStyles.DoubleBuffer property. It should reduce the flickering.
|
|
|
|
|
Hi, I am in need of help, I am new to VB and crystal reports. I am having trouble with images on the report. For some reason, the image is blurry. I store the file path in sql2000 db and the image on the dev machine. I am retrieving and saving the image correctly (clear image) onto my local machine (this is a temporary path), but for some reason, the report displays the image blurry. I even tried to insert a fixed picture (which is also clear) but still get the same problem. So I am assuming, there's a problem with the way crystal reports is pulling in the image. Any ideas on how to fix this?
Any help is most appreciated.
Thanks
|
|
|
|