|
You need to add a reference to the system.web .net library in your application
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Minenhle Ndlovu wrote: How can i add the reference to my windows form here is my references
Those are imports; it says what is being imported in that unit, from all the references that are available in your project.
Are you using Visual Studio? If so, go to the "Project" menu and choose "Add reference" from there. Both SharpDevelop and MonoDevelop have a similar options. If you're using a text-editor, you'll have to edit the project by hand.
Bastard Programmer from Hell
|
|
|
|
|
Hi all,
In access, we can print multiple report in a single button, how
to do that in asp.net? I'm using report viewer.
I really appreciate who can gave me a detailed solution. I ask already google.
Thanks in advance!
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
Hey.Frnds...I want to know how to create my own Spammer wid Vbscript....Plz Give me answer of this..Plz describe wid Basics frnds...
|
|
|
|
|
|
Certainly.
All you need to do is get some education, a decent job and a sexual partner.
Then you won't need to be a complete arse.
It is the sort of thing that morons and losers do, and it shows you are someone in need of a life.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
It's an OO world.
public class Naerling : Lazy<Person>{}
|
|
|
|
|
I do like the subtleties in your use of language.
|
|
|
|
|
Your asking a bunch of people who HATE spam with a passion how to write something that send that stuff out?? And you call us "friends"??
|
|
|
|
|
Thanks for the laugh. It's a rough Monday morning, and I needed it.
|
|
|
|
|
Hello All,
I'm playing with interactions between excel and vb.net...
Everytime i start an excel application it become's one of my processes in my taskbar.
I always put my vars from workbook,sheets,app to nothing at the end
i collect my garbage
But wath do i forget to dispose this from the services??
I'm kind a noob so can somebody provide me some help?
I just want to clean up after using...
oSheet = Nothing
oBook = Nothing
oExcel.Quit()
oExcel = Nothing
GC.Collect()
Thx in advance
|
|
|
|
|
|
Hey,
Thx Dave it was a really helpfull article.
Can you check if i forget something?(maybe in my catch blok or something?)
Dim oApp As New Excel.Application()
Dim oBook As Excel.Workbook = oApp.Workbooks.Add
Dim oSheet As Excel.Worksheet = oApp.ActiveSheet
Dim chartRange As Excel.Range
'hoofding
chartRange = oSheet.Range("A1", "I1")
chartRange.Merge()
chartRange.FormulaR1C1 = "WorkBook"
chartRange.Font.Bold = True
chartRange.Font.Size = 20
chartRange.HorizontalAlignment = 3
'chartRange.VerticalAlignment = 3
'Save the Workbook
oBook.SaveAs(sSampleFolder & "V.F." & idvoorexcel & "-" & Label6.Text & ".xlsx")
oSheet = Nothing
oBook.Close(False)
oBook = Nothing
oApp.Quit()
oApp = Nothing
System.Threading.Thread.Sleep(3000)
End If
Catch ex As Exception
MsgBox("location : catch blok")
oSheet = Nothing
oBook = Nothing
End Try
Greetings
|
|
|
|
|
Yeah, I see no mention of Marshal.ReleaseComObject() .
You might want to go back and re-read the article.
|
|
|
|
|
Hey i'm back from a student holiday
Thx for all the answers i will vote 4 them...
I posted the wrong code snippet
here is the code that i wanted to post :
Imports Microsoft.Office.Interop
Try
Dim oApp As New Excel.Application()
Dim oBook As Excel.Workbook = oApp.Workbooks.Add
Dim oSheet As Excel.Worksheet = oApp.ActiveSheet
chartRange = oSheet.range("A20", "G20")
oSheet.Range("A20").Value = "blabla"
chartRange.BorderAround(Excel.XlLineStyle.xlContinuous, _
Excel.XlBorderWeight.xlMedium, Excel.XlColorIndex. _
xlColorIndexAutomatic, Excel.XlColorIndex.xlColorIndexAutomatic)
'Save the Workbook and quit Excel.
oBook.SaveAs(sSampleFolder & "V.F." & idvoorexcel & "-" & Label6.Text & "-" & DateTime.Now.ToString("ddMMyyHHmmss") & ".xlsx")
oSheet = Nothing
NAR(oSheet)
oBook.Close(False)
NAR(oBook)
oBook = Nothing
oApp.Quit()
NAR(oApp)
oApp = Nothing
System.Threading.Thread.Sleep(1500)
End If
Catch ex As Exception
NAR(oSheet)
oBook.Close(False)
NAR(oBook)
oSheet = Nothing
oBook.Close(False)
oBook = Nothing
System.Threading.Thread.Sleep(1500)
GC.Collect()
End Try
Private Sub NAR(ByVal o As Object)
Try
System.Runtime.InteropServices.Marshal.ReleaseComObject(o)
Catch
Finally
o = Nothing
End Try
End Sub
By the way nice link with the NAR
Still don't know if i oversaw something?
Thx D
|
|
|
|
|
Hi,
I want to make one application that reads the pdf file and write that data in to excel sheet and after i have to make a chart in excel sheet.
Here, my problem is ,i do not know how to read the pdf file in VB .Please kindly help me by giving some solution or is there any tutorial or article related to this concern.
Anu
|
|
|
|
|
Anu_Bala wrote: any tutorial or article related to this concern.
Yes plenty[^].
|
|
|
|
|
I don't know why you were down-voted, it was a perfectly legit answer.
|
|
|
|
|
Dave Kreskowiak wrote: I don't know why you were down-voted
The usual reason I expect! However, thanks for your high value vote.
|
|
|
|
|
Actually what your are all talking about.I did not vote for anyhting.May be by mistake it get voted.where i can put vote for your answer??
Anu
|
|
|
|
|
Go to the answer message and click on one of the numbers on the right hand side; 1 for bad, 5 for good.
|
|
|
|
|
Hi,
I am trying to create a billing application. In this I need multilanguage support. I have to use Telugu, by which user will be entering the data to fill the form. How do I create an application with Telugu supporting.
Kindly let me know, are there any such samples, so that I can refer and build the application.
Thanks,
Ranga
RN
|
|
|
|
|
Your bigger problem is why are you using VB6 in this day and age for new developement??
VB6 is dead and there won't be any support for it's runtime in Windows 8. Your app is already obsolete and you haven't even finished writing it! Pickup VB.NET and start there before you really screw yourself over having to rewrite this app soon after you release it.
|
|
|
|
|
As mentioned, VB6 isn't for sale anymore. Unlike languages as Pascal or C, VB6 is owned by Microsoft and they have decided to decapitate it. That's happened quite a few years ago, which explains why you're having a hard time finding examples.
Furthermore, VB6 comes from an era where we didn't use UTF8 everywhere. Your best bet would indeed be to move to VB.NET; you can still use most of the old syntax, and multi-language applications are very well supported.
VB.NET is available for free, just as the IDE is. VB6 isn't available. Not for free, not for money.
Bastard Programmer from Hell
|
|
|
|
|
Use VB.Net, VB6 went the way of the dinosaurs.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|