|
Dear Reuven
Well no more erros in the code ( thx for that)
but the thing is that ,how can i display the Data?each part alone?should add it to array ?
it will be helpfull if i get ur mail such as Msn email
or kindly add me : abouelrim@hotmail.com
Regards
Ramy
|
|
|
|
|
Hi
Following are the code to execute the report:
Public Sub LoadReport(ByVal rptPath As String, ByVal dTbl As DataTable)
Dim oRpt As New ReportDocument
oRpt.Load(rptPath)
oRpt.SetDataSource(dTbl)
crptviewer.ReportSource = oRpt
crptviewer.RefreshReport()
End Sub
Dim ofrmRptViewer As New frmReportViewer
ofrmRptViewer.MdiParent = MDIMain
ofrmRptViewer.LoadReport("D:\DMS Source Code\DMS\Reports\rptDistributors.rpt", ds.Tables(0))
ofrmRptViewer.Show()
I m trying to generate report but the following error is occuring:
DLL 'D:\DMS Source Code\DMS\bin\Debug\CrystalDecisions.CrystalReports.Engine.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.
|
|
|
|
|
Hi,
I'd like to know how i can add some cool image effects to the image in the picturebox like bump, diffuse, colorise, solarise enz. Anyone has some ideas?
--Zaegra--
|
|
|
|
|
My image processing articles in C# will give you a good starting point.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Could you give me a link
--Zaegra--
|
|
|
|
|
|
Ok thanks
--Zaegra--
|
|
|
|
|
hi
i want to print the win form in vb.net 2005 which contain different control and grphics (lines , circle etc). please give me the sample code
thanks
Regards Shahzad
|
|
|
|
|
All you have to do is search for "print form" on MSDN and you'd come up with an example[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
First of all tx in advance for reading this post. I'm not a programmer at all, so I even don't know if I'm asking to do this in the wright coding language:
In essence this my project :
I have a .log file that I need to convert structuraly to make it
usefull in FileMaker.
- open the logfile
- In the .log file there is a character that needs to be replaced with
another, to be able to convert it more easely into colums.
- Delete colums the Second and Forth colum (in excel since the shift
places it is first B, than C)
- Then those colums needs to be transposed (rows becomes colums) in order to be able to import them into FileMaker.
- save the logfile
I can do this in Excel but I want to skip the use of Excel. I only like
to use FM because it is going to be a runtime application. My costumers
wont have a 'full version' of FM and may or may not have Excel.
running FM pro 8.5 on Win XP.
Kind regards and Tx in advance !!!!
___________________________________
Option Explicit
Sub ReplaceAndTranspose()
Dim FromChars As Variant
Dim ToChars As Variant
Dim iCtr As Long
FromChars = Array(Chr(28))
ToChars = Array(Chr(124))
If UBound(FromChars) <> UBound(ToChars) Then
MsgBox "design error--make from/to match"
Exit Sub
End If
For iCtr = LBound(FromChars) To UBound(FromChars)
ActiveSheet.Cells.replace What:=FromChars(iCtr), _
Replacement:=ToChars(iCtr), LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Next iCtr
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"),
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=False, _
Semicolon:=False, Comma:=False, Space:=False, Other:=True,
OtherChar _
:="|", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1),
Array(4, 1), Array(5, _
1)), TrailingMinusNumbers:=True
Cells.Select
Cells.EntireColumn.AutoFit
Columns("B:B").Select
Selection.Delete Shift:=xlToLeft
Columns("C:C").Select
Selection.Delete Shift:=xlToLeft
Cells.Select
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Range("A1:B200").Select
Selection.Copy
Sheets.Add
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=True
Application.CutCopyMode = False
ActiveWorkbook.Save
End Sub
|
|
|
|
|
Hi
I need to execute an exe preapred by using vb.net. When i execute it on Windows 98, i faced the following error message " a required dll mscoree.dll is missing".
Please let me know can we execute an vb.net application in windows98, which don't have vb.net installed.
Thanks
Manish
|
|
|
|
|
You can't run a VB.NET program if you don't have the .NET Framework installed on your computer. You can try creating a program in VB 6, that runs in Windows 98 and in XP, but that means you'll have to convert your project to VB 6 (if possible) or to start all over again, or maybe check Google for some other solutions?
--Zaegra--
|
|
|
|
|
You have to install the .NET Framework on any machine that's going to run your application.
There are products out there that will let you get around this, by static-linking your app with the .NET Framework, but they cost BIG $$$$.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
We are using a proprietary string buffer protocol via TCP/IP to transfer string buffers back and forth from the server. In this process, we need to be able to reliably overlay structures onto string buffers and vice versa. The structures can have strings, arrays, chars, dates, numbers as their members.
Can someone suggest a reliable way to accomplish this please?
soumya
|
|
|
|
|
I understand from your things that you transfer the string, so u want to translate a structure into a string.
one way i think about is to convert the structure into bytes and then decode it back.
for each structure you may need some signs, like: 123 mean start to transfer array. 221 mean start one array layer and 122 mean finish transfer the layer. etc.
|
|
|
|
|
|
To send mail, that requires you to set up a SMTP or POP3 server on your computer (a lot more trouble than it's worth). And, this is really hard to do with Windows, so you'd be better off using something like Linux.
And I don't know about sending a fax, but I'm sure it would be pretty advanced.
|
|
|
|
|
UltraCoder wrote: To send mail, that requires you to set up a SMTP or POP3 server on your computer
No, it doesn't! You just need to be able to use a server that's connected to the Internet.
UltraCoder wrote: (a lot more trouble than it's worth).
For you, maybe. Not for someone who knows how they work.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
First, just saying "Urgent" in a forum will likely just get your post ignored.
Your subject line needs to mention just a little something about the topic, then put the question in the body of the post. Not just "Urgent". No one cares how urgent your need is in a forum environment. If it was that urgent, you'd be doing your own research until the wee hours of the morning, wouldn't you? Since we don't get paid for working on your project, we're sure not going to stay up researching your problem for you!
Now, Ultra was only partiallt correct. You do need an SMTP server to send emails. It does NOT need to be installed on your machine. You just need access to a server that can send the mail for you.
Once you have access to a server, all you need is something liek this:
Imports System.Web.Mail
.
.
.
Dim MyMail As MailMessage = New MailMessage()
MyMail.From = "whoeveryouare@whereeveryouare.com"
MyMail.To = "someone@somewhere.com"
MyMail.Subject = "Subject"
MyMail.Body = "Message body text"
SmtpMail.MailServer = "mail.someserver.com"
SmtpMail.Send(MyMail)
SmtpMail.Send(
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
Does anyone know were I can find some good sample code or tutorials on working with WMI in VB.net in Visual Studio 2005.
Thanks, Andrew Robinson.
|
|
|
|
|
|
I need to create a simple simulation of traffic flowing on a motorway.
How should i go about this?
Any ideas?
Does anybody know any examples?
|
|
|
|
|
Well, you could create a animated GIF using Jasc Animation Shop.
Or, to be a little more advanced. You could design a image of a road, then create images of cars. Then have a timer that moves the cars further down the picture of the road every x number of seconds.
I've done something similar using the second method, and it's not too hard, but do it how ever you want.
Hope this helps!
|
|
|
|
|
You could check google for some images of vehicles (GIF files support transparent backgrounds), load them in a picturebox in VB (using a transparent background) and then using a timer which moves the car(s) up every second/milisecond. Good luck
|
|
|
|
|
I am in the middle of making an application that tweaks the registry like this, (This one just places the admin account on the windows XP startup screen)
Dim reg As RegistryKey
Dim intNumber As Integer = 1
Dim strKey As String = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList"
reg = Registry.LocalMachine.CreateSubKey(strKey)
reg.SetValue("Administrator", intNumber)
If Not reg Is Nothing Then reg.Close()
But when you check the box on my application to make this happen, how can i get it so that when the box is unchecked it will reverse the change instead of me manually going into the registry and changing the value back to 0? also how would i make it so that my application will save the checkboxes states when it is closed and then re-opend?
I really need help with this as microsoft are not much help
|
|
|
|