|
Dhruva Hein wrote: Dim attachment As New System.Net.Mail.Attachment("text.xls")
First, are you sure that's the filename?? Or was it supposed to be "test.xls"?
Next, instead of the filename only, build and use a fully qualified path to the file. This will eliminate the "assumption" of what the "current directory" is and most likely, solve your problem.
|
|
|
|
|
Duh! Thanks, guys! The only excuse I can claim is that I had a fever when I "wrote" that code.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
|
|
|
|
|
Hi,
When the user starts to enter into the richTextbox, I want to get the data's in UPPER Case format.
So any better ideas?
Thanks
|
|
|
|
|
Dim test As New TextBox
test.Text = "woo"
Dim s As String
s = test.Text.ToUpper()
Or am I missing what you intended to do?
|
|
|
|
|
and where would you suggest to put that snippet? in the TextChanged event? it would mean all of the text would be replaces on every keystroke, not really efficient I would say (an RTB can contain lots of text, not saying it should though). I'd rather manipulate the new character on entry, maybe through KeyPressEventArgs.KeyChar
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
I didn't know it was as the keys where pressed, I thought it was for a button press to validate text or use the contents of the textbox at some other point in time, my mistake.
|
|
|
|
|
Are you trying to capture each keystroke and re-write the character if it needs to be upper case ? It can be done, but just uppercase the text after the user has completed entering in the data and use the logic given by ElloitA.
|
|
|
|
|
TextBox has CharacterCasing property which seems missing in the RichTextBox. Hence, you will need to handle the KeyPress event and convert the pressed key character to uppercase.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hi,
can anyone one guide me on this issue? can't seem to find a solution the web.
Dim cReport as reportdocument
cReport = new reportdocument()
cReport.Load("c:\report.rpt") 'this line causes load report failed
cReportViewer.reportsource=cReport
creportViewer.refresh()
When i comment the loading part, I get invalid report source
thanks for your help
|
|
|
|
|
Hmm ...
Those are the steps I use to load my Crystal reports.
Silly question, "Are you sure the report is stored on the root ?"
(C:\report.rpt)
|
|
|
|
|
|
Now I got it load but no data showing..any idea
|
|
|
|
|
Hi,
You have to set a few other properties in addition to the report file path. These are the codes I use...
<br />
Private Sub loadReport()<br />
<br />
'Prepare to read data<br />
Dim ta As New DSHelpDeskLiteTableAdapters.HLPCases_VW_ListReportTableAdapter<br />
Dim dt As DSHelpDeskLite.HLPCases_VW_ListReportDataTable<br />
<br />
'Read data<br />
dt = ta.GetData()<br />
<br />
'Verify the path to the Crystal Report's .RPT file:<br />
Dim strReportPath As String = HostingEnvironment.ApplicationPhysicalPath & "DesktopModules\HelpDeskLite\Reports\" & REPORTNAME & ".rpt"<br />
Label1.Text = strReportPath<br />
<br />
If Not IO.File.Exists(strReportPath) Then<br />
Throw (New Exception("Unable to locate report file:" & _<br />
vbCrLf & strReportPath))<br />
End If<br />
<br />
'Load the Crystal report's .RPT file and pass in the DataTable:<br />
<br />
Dim cr As New ReportDocument<br />
<br />
cr.SetDatabaseLogon("userid", "password", "server", "database")<br />
cr.Load(strReportPath)<br />
cr.SetDataSource(dt.DataSet)<br />
<br />
<br />
'Set the CrystalReportViewer's appearance and set the ReportSource:<br />
<br />
CrystalReportViewer1.ReportSource = cr<br />
<br />
End Sub<br />
Regards,
flameater
|
|
|
|
|
AOA Me Ihtsham Ali
i use crystal Report 8.5 in vb6 with Crystal Report control.
can i add text box in crystal report from vb source code?
please any body chek it
|
|
|
|
|
hi
I'm trying to filter http://books.google.co.nz/bkshp?hl=en&tab=wp which is in textbox1.text to gain the host address which is www.google.com in textbox2.text.could you please help me to figure my problem out.
thank you for reading
|
|
|
|
|
Take a look at this[^]. It is c# unfortunately but you may be able to get sufficient insight from it to write your own VB.Net version.
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.”
|
|
|
|
|
Or this[^] seems even more interesting, as it is in VB.Net
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.”
|
|
|
|
|
Gud Day all
I've been trying to solve this problem for quite some time now...I hope someone might have a clue or at least a place where I can learn more about the issue;
you see I've managed to make the speech dictation provided by MS to work using VB.NET, and it writes everything perfectly; what I'm trying to do is disable the grammar and the vocabulary list, since it is using the English words; what I want to do is basically type out what the user says with out forming up the correct word; or let me say type the combination of phonemes...
any ideas?
thnx in advance
Regards
Abraham
|
|
|
|
|
AbrahamMOKDAD wrote: you see I've managed to make the speech dictation provided by MS to work
Which translates sound into known words.
AbrahamMOKDAD wrote: or let me say type the combination of phonemes...
Sounds aren't mapped to a phoneme by the SAPI. Phonemes can't be interpreted, and can't be mapped to a series of characters. A single letter has a different sound in a different language, and there is no version that tries to map "generic sounds" to a generic alphabet.
An alternative would be to record the sounds yourself (DirectInput) and use AI-algo to classify it (to map the sound to a/a serie of chars)
The latter option is quite a challenge, I suppose. I hope that someone else posts an answer that I missed
I are Troll
|
|
|
|
|
Thnx Eddy ; and if you may; is it possible using SAPI to dictate the english letters; let us say if the user says "parlon" it would be written as said or close to it; not necessarily makes sense. any thoughts on that?
|
|
|
|
|
AbrahamMOKDAD wrote: nd if you may; is it possible using SAPI to dictate the english letters;
Yup, but then you'd be spelling each word, e.g. "Hotel Echo Lima Lima Oscar" for "Hello".
AbrahamMOKDAD wrote: let us say if the user says "parlon" it would be written as said or close to it; not necessarily makes sense.
That's what happens when you try an English word; it tries to map the sounds to match up to the sounds of a known word. You could start at the .NET classes for speech recognition, in the System.Speech.Recognition[^] namespace. There's also a cool example right here on CodeProject[^].
I are Troll
|
|
|
|
|
|
I am creating a VB application. I have 3 buttons and 3 frames. I want to load one frame on click of a particular button.
I am keeping one's visibility true and another one's visibility false. But when I run the application, none of the frame appears.
Why is it so?
Plz help me.
Thanks.
|
|
|
|
|
Purish Dwivedi wrote: Why is it so?
You might just as well ask "How long is a piece of string?".
There is no answer to your question because no one knows what you have done nor how you did it.
Edit your post to show the relevant code. Read the guidelines first here[^], paying particular attention to items 4, 5 and 7.
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.”
|
|
|
|
|
First, since "frames" most commonly applies to web applications, you're going to have to specify if this is a web app (there is an ASP.NET forum here for these questions) or a Windows Forms app. Second, if this is a Windows Forms app, how did you implement these "frames"? What controls did you use and how were they arranged? What are the initial properties, like "Visible"? Show the code you're using to hide one "frame" and how another.
|
|
|
|