|
Helo there. I just download the code which says developing simple word processor and try to run. But I couldn't. what should I do. Please help.
It is me.
|
|
|
|
|
Have you check the code? there are maybe some mistyped word or the code version are not same as your compiler. If it's a vb 6.0 code and you use vb2005 you can upgrade the code using upgrade tool.
|
|
|
|
|
With your lack of a description of the problem, it's impossible to tell you whats wrong.
Go to where you downloaded the code from and see if there is a forum or some other means to contact whoever wrote the code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Do you have a good and proffessenal sample code(s) of using Treeview control in vb.net?
Best regards
Mansour
|
|
|
|
|
Sir/Madam,
I am facing the date query problem .Actually , I am using the following query to get the records which are present in between two dates.
select * from table where field between 12/12/2000 and 10/1/2001
* Field is the date type in the database.
Please help.
Thanks and Regards
Pankaj
|
|
|
|
|
I don't understand what your problem is. What is it you are having a problem with? My only advise is that you should use ISO format dates because there are culture neutral.
|
|
|
|
|
If I've correctly understood your question, I think you should use following structures:
select * from table WHERE field >=#12/12/2000# And field <=#10/1/2001#
or
select * from table WHERE field Between #2000/12/12# And #2001/10/01#
|
|
|
|
|
Thanks You Sir.Thanks for ur kind attention.problem is solved .Ur query is working.
Can , I send the mail programically in vb.net (Window Application).
If possible please send a sample code link.
Thanks and Regards
Pankaj
|
|
|
|
|
refering you to your post[^]
|
|
|
|
|
Sir/Madam,
Can , I send the mail programically in vb.net (Window Application).
If possible please send a sample code link.
Thanks and Regards
Pankaj
|
|
|
|
|
you can try this:
Try
Dim oMessage As MailMessage = New MailMessage
oMessage.Body = "MESSAGE COMES HERE"
oMessage.To.Add(TO_User_Email)
Dim oFrom As MailAddress = New MailAddress(FROM_User_Email)
oMessage.From = oFrom
oMessage.Subject = "SUBJECT COMES HERE"
'oMessage.IsBodyHtml = True
'oMessage.Priority = MailPriority.Normal
Dim oSMTP As SmtpClient = New SmtpClient("Localhost")
oSMTP.Send(oMessage)
Catch ex As Exception
End Try
|
|
|
|
|
forgot to add :
<br />
Imports System.Net.Mail<br />
|
|
|
|
|
Sir/Madam,
It is for Window application or Web application?
Thanks and regards
Pankaj
|
|
|
|
|
Both.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi all friends
I want to work with Treeview Control in one program, but I have some problems:
1- Are keys of all nodes unique like VB6? I think only children of one node should have unique keys.
2- How can I set one treenode variable to one node with special key?
Many thanks
Mansour
|
|
|
|
|
how to create software component to check whether input on combo boxes and textboxes in a program are valid SQL statements..So as to block SQL injection implemented through reg ex
riane
|
|
|
|
|
Your question has nothing to do with web services. To stop an injection attack, just make sure that there's no quotes, if you're accepting text for a string. If you strip the quotes, whatever is typed, gets inserted as a string.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
how to create software component to check whether input on combo boxes and textboxes in a program are valid SQL statements..So as to block SQL injection implemented through resex<
riane
|
|
|
|
|
Please don't ask twice
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am using this code to try and save a word document, although it does work,
when it is pasted in to the word doc it loses any formating.
Is there an article on how to paste from the clipboard and keep the format?
My Code
Case ".DOC"<br />
' Copy the contents of the textbox to the clipboard<br />
Clipboard.SetDataObject(rtbText.Text)<br />
objWord = CreateObject("Word.Application")<br />
objTempDoc = objWord.Documents.Add<br />
objWord.visible = True<br />
<br />
With objTempDoc<br />
.Content.Paste()<br />
.Activate()<br />
.Save()<br />
End With<br />
objWord.Quit()
|
|
|
|
|
Try using rtbText.Rtf which will get the text with the RTF formatting. You may also want to set the text with:
Clipboard.SetText(rtbText.Rtf, TextDataFormat.Rtf); which will tell the clipboard it's formatted text.
I have no idea what I just said. But my intentions were sincere.
Poore Design
|
|
|
|
|
Thanks for that Poore, it worked a treat, but,(there's always a but!)
although this saves the word doc with all it's formating, when I open it in my program the formating does not show, if I open it in word the formating does show so I know it's there, I figure it's the way I am opening the document in my program that is wrong, so here is the code that I am using.
I've tried changeing rtbText.text to rtbText.rtf but that didn't work either.
<br />
<p><font SIZE="2" COLOR="#0000ff">Case</font><font SIZE="2"><br />
<font SIZE="2" COLOR="#a31515">"doc"<br />
</font><font SIZE="2"><br />
<p>objWord = CreateObject(</font><font SIZE="2" COLOR="#a31515">"Word.Application"</font><font SIZE="2">)<br />
<p>objDoc = objWord.Documents.Open(OFD1.FileName)<br />
<p>objDoc.Select()<br />
<p>rtbText.Text = objWord.Selection.Text<br />
<p>objDoc.Close()<br />
<p>objWord.Quit()</p><br />
</font><br />
<br />
|
|
|
|
|
I know it's not the ideal method but have you tried doing what you did in the first instance (i.e. using the clipboard) but in reverse because that way I think that Word will copy the formatted (as well as plain) text onto the clipboard.
Just make sure that when you use Clipboard.GetText that you specify you want the RichText version.
I have no idea what I just said. But my intentions were sincere.
Poore Design
|
|
|
|
|
Hello,
This is my first delve into XML namespaces and I'm having a VERY difficult time parsing the XML because of the Namespace. If I remove the namespace then I get no problems. It would really be appreciated if anybody out there can cure my headache!
Here is my code:
Dim xmlDoc As New System.Xml.XmlDocument()
Dim resolver as XmlUrlResolver = new XmlUrlResolver()
Dim datasource as XmlDataSource = new XmlDataSource()
resolver.Credentials = New NetworkCredential("username", "password")
xmlDoc.XmlResolver = resolver
xmlDoc.Load("http://somedomain.com/webservicename")
Dim xsn as XmlNamespaceManager = new XmlNamespaceManager(xmlDoc.NameTable)
xsn.AddNamespace("t", "urn:ahw:itemlist")
xmlData.Document = xmlDoc
xmlData.TransformSource = "test.xsl"
Here is the XML:
<?xml version="1.0" encoding="UTF-8"?>
<itemlist xmlns="urn:ahw:itemlist">
<item name="Photos" friendly-name="Photos" />
<item name="Videos" friendly-name="Videos" />
<item name="OtherMedia" friendly-name="Other Media" />
</item-type-list>
Here is the xsl:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="itemlist">
<TABLE BORDER="2">
<TR>
<TD>Display Name</TD>
<TD>Name</TD>
</TR>
<xsl:for-each select="item">
<TR>
<TD><xsl:value-of select="@friendly-name"/></TD>
<TD><xsl:value-of select="@name"/></TD>
</TR>
</xsl:for-each>
</TABLE>
</xsl:template>
</xsl:stylesheet>
Here is my asp.net page (the main part where I want the XML to display):
<form runat="server">
<asp:Xml ID="xmlData" runat="server"/>
</form>
Thanks so much for your time!
Chris
|
|
|
|
|
Sorry, I should be able to figure this out. Seems like .net should have made this easy, though.
How do I run an .exe file inside a panel or tab within my form?
thanks
|
|
|
|