|
i had downloded the c# project of html to pdf conversion, that uses the itextsharp.dll, but pdf file is not open.
so is there any other way of conversion
can anyone help me.
thanx and regards.
Gauri
|
|
|
|
|
There's tons of libraries you can buy.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Attempting to write a script that searches and moves .pst files from network share then merges them into the users exchange mailbox under a subfolder (ie Archives > myarchive1 etc). We simply wish to run this as a scheduled task.
The following is not mine (thanks to the author) but needs some modifying and comments added.
Appreciate the help!
--------------------
Function GetStorePath(strStoreID)
Dim intStart
Dim intEnd
Dim strProvider
Dim strPathRaw
intStart = InStr(9, strStoreID, "0000") + 4
intEnd = InStr(intStart, strStoreID, "00")
strProvider = Mid(strStoreID, intStart, intEnd - intStart)
strProvider = Hex2ToString(strProvider)
Select Case LCase(strProvider)
Case "mspst.dll", "pstprx.dll"
If Right(strStoreID, 6) = "000000" Then
'2003
intStart = InStrRev(strStoreID, "00000000") + 8
strPathRaw = Mid(strStoreID, intStart)
GetStorePath = Trim(Hex4ToString(strPathRaw))
Else
'97
intStart = InStrRev(strStoreID, "000000") + 6
strPathRaw = Mid(strStoreID, intStart)
GetStorePath = Trim(Hex2ToString(strPathRaw))
End If
Case "msncon.dll"
intStart = InStrRev(strStoreID, "00", Len(strStoreID) - 2) + 2
strPathRaw = Mid(strStoreID, intStart)
GetStorePath = Trim(Hex2ToString(strPathRaw))
Case "emsmdb.dll"
GetStorePath = "Exchange store"
Case Else
GetStorePath = "Unknown store path"
End Select
End Function
Public Function Hex4ToString(Data)
Dim strTemp
Dim strAll
Dim i
For i = 1 To Len(Data) Step 4
strTemp = Mid(Data, i, 4)
strTemp = "&H" & Right(strTemp, 2) & Left(strTemp, 2)
strAll = strAll & ChrW(Eval(strTemp))
Next
Hex4ToString = strAll
End Function
Public Function Hex2ToString(Data)
Dim strTemp
Dim strAll
Dim i
For i = 1 To Len(Data) Step 2
strTemp = "&H" & Mid(Data, i, 2)
strAll = strAll & ChrW(Eval(strTemp))
Next
Hex2ToString = strAll
End Function
|
|
|
|
|
Noone is going to write your code for you. If you've got a specific question, we can help with that.
This looks like really, really OLD VB5 or 6 code. You'd be much better off scrapping this and starting from scratch, using the Outlook automation libraries to do this.
|
|
|
|
|
Was not expecting someone else to rewrite anything.
Can you point me to the Outlook Automation library? I do have junior experience with C# and would prefer to code it in this as my VB skills a rusty.
Cheers!
|
|
|
|
|
Add a Reference to the Microsoft.Office.Outlook Primary Interop Assemblies. Or, you could add a reference to the COM Outlook library.
|
|
|
|
|
Hi all.
I hope I am not repeating a past question...well I had see replies to similar questions online but they never seem to provide a complete answer.
Basically I am wanting to control a stepper motor from the parallel port to turn a capacitor for an antenna.
So I am working through the code slowly adding as I go...well that's the plan ( a learning experience ).
Outputting to the port seems ok but wanting to stop the motor in the middle of loop.
So going back to basics just have a form, 2 buttons ( Run , Stop ) the loop begins when the Run is clicked.
But here is the question , how to stop and exit the loop on the click of the Stop button, I cant get focus to that button.
So to keep it simple, if just using a simple (For-next loop) what code is needed to solve my problem.
using VB 2005 express...
Thank you in advance....
John
|
|
|
|
|
The solution is to move the code that outputs the signal to the parallel port (a bad choice BTW) in another thread. They way you have it run now, it's impossible to stop the loop because no your loop is blocking all other code from running on the UI thread. This means that no events are getting processed, like the Click handlers.
Your other solution is to not use a loop. You can use a Timer to fire off a Tick event that icrements your motor one step. Then, you can stop the timer any time you want.
|
|
|
|
|
Hi..
Thanks Dave for that Idea using the Timer, I seem to have something that works...untested as far as driving the motor ....but reading the Lpt1 port indicates the info is getting where it should.
John
|
|
|
|
|
Hi,
I doubt a PC-based solution will ever be satisfactory. A PC (more accurately Windows) is not a real-time system, hence you will not be able to get the step times sufficiently accurate and constant (or accurately ramping up and down) so the motion will be erratic, and so will the sound be that your stepper motor is going to produce.
The right solution requires a microcontroller that takes care of the stepping; in such a solution the PC is used for the user interface, and passing high-level commands (such as stepping frequency, number of steps) to the microcontroller, which has to execute the steps with accurate timing.
As an added bonus, the interface becomes much simpler: instead of connecting the motor to the PC, the only thing connected to the PC now is a low-energy microcontroller, possibly through an RS232C serial port or something similar.
|
|
|
|
|
Hi
Thanks for the quick replies..
The stepper will have reduction gears so the steps will be very very small.
Type of steps will be added later with other things...as I say..working slowly and trying to learn.
I will look at the timer idea though..not sure how to work it but experimenting works..
John
|
|
|
|
|
Hi John,
reduction gears tell me the motor steps will be many, so my accurate timing concerns remain.
Good luck anyway.
|
|
|
|
|
Hi Luc
There is going to be buffering after the LPt1 port.
As long as it moves the motor in very small steps....I think all should be ok.. ( The cap works not so bad now with just a DC motor and reduction gear..I just want a bit more control..
John
|
|
|
|
|
Hi,
I am developing an application for Windows Mobile Pro 6. I realized that a picturebox's GotFocus and LostFocus events are not functioning. I tested it with the code shown below. Neither msgboxes popped up nor mousemove event got fired up but just click event. I have developed this Mobil App. under Windows Vista 64. What would be the reason for such problem? THANX.
Private Sub PictureBox5_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox5.GotFocus
MsgBox("Gotfocus") 'not working
End Sub
Private Sub PictureBox5_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox5.LostFocus
MsgBox("LostFocus") 'not working
mtt.Dispose()
End Sub
'the below procedure suppose to fired up when we go over the picture by mouse but it is fired up when I click the picture
Private Sub PictureBox5_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox5.MouseMove
Call ToolTip("Hello World", sender)
End Sub
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Are you sure you've got the mouse on PictureBox5??
|
|
|
|
|
Dear all
I am having xml file that look as below
<people>
<person id="001">
<name> ABC </name>
<age> 16 </age>
</person>
<person id="002">
<name> XYZ </name>
<age> 26 </age>
</person>
<person id="003">
<name> AAA </name>
<age> 26 </age>
</person>
</people>
Now i want to read every name and age from the xml file.
The code used as
Dim XMLDoc As New DOMDocument30
Dim NodLst As IXMLDOMNodeList
Dim Node As IXMLDOMNode
Dim Nod As IXMLDOMNode
Dim nodCnt As Long
Dim Data() As String
XMLDoc.async = False
'Loading the XML file on C drive
If XMLDoc.Load("D:\XML\123.xml") Then
'==========================
'Assigning root node to the node list variable
Set NodLst = XMLDoc.selectNodes("/People")
ReDim Data(NodLst.length)
For nodCnt = 0 To NodLst.length - 1
Set Nod = NodLst(nodCnt).selectSingleNode("Person")
Data(nodCnt) = Nod.Text
Set Nod = NodLst(nodCnt).childNodes(0)
'===========================
'Appending data inside "from" to "to"
Data(nodCnt) = Data(nodCnt) & vbTab & Nod.Text
Text1.Text = nodCnt
Text3.Text = Data(nodCnt)
Next nodCnt
Else
MsgBox ("Can't load file")
End If
The result is
ABC () 16
where as i need Name="ABC" & Age="16"
Please help
Thanx in advance...!!!
Shazz here to help you...
|
|
|
|
|
It appears that you're relying on the Nod.Text property to format the field names and values for you. Don't. Just get the Name and Age values for each person and format the output string yourself.
|
|
|
|
|
Hi all,
In my application video is not playing. i am using <embed> tag
here it is..
<embed src="<%=VideoPlay>" quality="high" allowfullscreen="false" allowscriptaccess="always" flashvars="&height=240&width=320&shuffle=false&repeat=list&autostart=true" style = "width: 480px; height: 270px;" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
Here src="<%=VideoPlay>" is this i get flv format file.but video is not playing.
please help me.
JohnDas
|
|
|
|
|
You may want to ask this question in the Web Development forum. I can't see anything that has to do with VB.NET or the .NET Framework.
|
|
|
|
|
Hello friends,
How can i create a folder having system date and time. After that i want to move some files to that created folder?
when i run my application, one folder has to be created having the present time and want to copy some files to that folder.
How can i do these..
Thanks and regards
dens
|
|
|
|
|
Have a look at the SYSTEM.IO namespace it does everything you need.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi,
At the time of creating Registry Key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run the error message shows "Attempted to perform an unauthorized operation.". I am developing application in Vista Environment whether UAC is Enable.
Thanks
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
First don't double post
Why do you need to write to this registry key? Its considerd bad practice.
This sounds alot like you are trying to write some sort of malware.
So without more explanation to what you want and why I doubt anyone will answer your question.
|
|
|
|
|
I want to set application to Startup for running at windows loading.
If you have any idea for that help so Help me.
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
I'v never done this before so I could be wrong (and I don't use vista so might not work in vista) but isn't it enough to set a shortcut in the 'startup' folder to your program (wich I think you can do within the setup).
There is no need for a registry entry.
And once more unless you explain why you want this I doubt you'll get more info than that.
It's more and more starting to sound like a malware program and nobody will help you write one off those.
|
|
|
|