|
hi all
Can anyone tell me ,hw to create setup of application which has cryastal reports.By using simple setup method .application is running fine but crystal report can't executing.wt is reason.is there any other method to bind crystal report with our application.
poonam
|
|
|
|
|
How can i manipulate my vb.net 2003 code that has datasets , datatables and datarows present into vb.net 2005. Can you please give me a idea.
Thank You Beforehand
|
|
|
|
|
What exactly are you wanting to do?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
hi Kendo
Try again, Explain in Detail, when you say manipulate, you dont say anything and Added vb2005.
Explain what you want to do
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I am working on a web service that is from an old VB.Net book and it uses datasets, dataTables to store the data but i am using express web developer creating a ASP web service and coding in VB.Net. But when i enter the VB.net code with the dataset etc it is throwing up errors sayiny that they are not defined, but they are . Sorry about other message was rather tired.
|
|
|
|
|
Ok got it working just changed the datasets to data.datasets and so on.
|
|
|
|
|
cool
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Good!
Now add this statement....
Imports System.Data
and you don't have to change all "datasets" to "data.datasets"
colgateas900197
|
|
|
|
|
Thank You all for your help
|
|
|
|
|
i've been searching the net trying to find a crc calculator that i can run from within my program to check data comming from a machine (3rd party). using HPMBCALC i've managed to determine the properties required (assuming the output is correct)
POLY 8005 (coefficients 16,15,2,0)
Init Value 0
Final Xor 0
Bit Reflected FALSE
Check Input string 123456789 or hex 31 32 33 34 35 36 37 38 39
Check Output Hex FE E8
i would really like to use my own implementation but would settle for a 3rd party dll (if i could find one).
i know vb has a problem with unsigned integers but that this can be compensated for by using a lookup table.
Any help would be greatly appreciated
tnx in advance
|
|
|
|
|
try to type 'CRC' in the CP article search engine: a bit of magician may happen!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi!
I just started using .net 2.0 I am trying to do exactly what was in this link
http://download.microsoft.com/download/8/3/6/836dd5f8-fa92-499f-8219-0d326f13bf18/hilo_data_final.wmv
I have about 100000 records but it is slow. takes about 12-20 seconds for each activity. can anyone guide me how could i speed up the response time?
thanks
|
|
|
|
|
Write a proc that returns only the current page of results, I assume you're not showing 100000 records ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
No I am not returning all the records.
exec sp_executesql N'SELECT Asset.*
FROM Asset
WHERE (AssetGroupId = @AssetGroupId)',N'@AssetGroupId int',@AssetGroupId=147
is the sql that runs which obviously is a very simple query. ran in sql takes less than a second.
please advise it takes about 20-30 seconds to load up a page when i change a AssetGroupId dropdown list
|
|
|
|
|
So, how many records does the SQL return ? How are you showing them ? If you're getting 10000 records and then using a paged control, odds are high that all 100000 are in viewstate, hence the delay
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I'm reading data from a file and the date is formatted as YYYYMMDD. What I need to to is calculations such date one minus date two = 30 days. Needless to say if I format the days as integer and subtact them I don't get the proper answer (eg 20070101 - 20060101) Jan 06 to Jan 07 isn't 10,000 days. Does anyone have any suggestions or better yet some related reading material. Thanks.
George
|
|
|
|
|
Read MSDN on the DateTime class, it holds all you need and more.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Use the DateTime.ParseExact method to parse the string into a DateTime Value. Then you can do calculations on it.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Any Good reading on the DateTime.ParseExact method. Something with examples if possible. I did a google search with less than impressive results. Thanks.
George
|
|
|
|
|
Hi, i have been trying to create my own version of the picture box, i did this by first creating a user control and then using the keyword inherits System.Windows.Forms.PictureBox
What i really want to do is that i wanna be able to create a button that is 50% transparent when mouse is no over it, and it will become opaque when the mouse hovers over it. I made it a picturebox because it will load a gif image from the resx file.
I have overrided the OnPaint function so that it will display the image in the control, the layout is as following.
I put this control on top of another PictureBox, and when I run it, it gives me a while box instead of displaying the image. I debugged it and find that the displaying of the image is fine until this onPaint is over, (i.e. when the pointer steps out of this method, and that the PictureBox underneath is displayed, this control will turn into a white box)
How can i fix this?!
Thx
Code:
<br />
Protected Overrides Sub OnPaint(ByVal pe As PaintEventArgs)<br />
MyBase.OnPaint(pe)<br />
Dim g As Graphics = Me.CreateGraphics()<br />
g.Clear(Me.BackColor)<br />
<br />
'-------------------call image from resources ---------<br />
Dim myAssembly As System.Reflection.Assembly<br />
myAssembly = Me.GetType.Assembly<br />
<br />
<br />
' Creates the ResourceManager.<br />
Dim myManager As New _<br />
System.Resources.ResourceManager("PictureResizer.Images", _<br />
myAssembly)<br />
<br />
Dim myImage As System.Drawing.Image<br />
myImage = CType(myManager.GetObject("flipccw"), _<br />
System.Drawing.Image)<br />
'----------------------------------------------<br />
Dim bitmap As Bitmap = New Bitmap(myImage)<br />
Dim clrMatrix As ColorMatrix = _<br />
New ColorMatrix(New Single()() _<br />
{New Single() {1, 0, 0, 0, 0}, _<br />
New Single() {0, 1, 0, 0, 0}, _<br />
New Single() {0, 0, 1, 0, 0}, _<br />
New Single() {0, 0, 0, 0.5F, 0}, _<br />
New Single() {0, 0, 0, 0, 1}})<br />
<br />
Dim imgAttributes As ImageAttributes = New ImageAttributes()<br />
imgAttributes.SetColorMatrix(clrMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap)<br />
<br />
g.DrawImage(bitmap, New Rectangle(0, 0, Me.Width, Me.Height), _<br />
0, 0, bitmap.Width, bitmap.Height, _<br />
GraphicsUnit.Pixel, imgAttributes)<br />
' Dispose<br />
g.Dispose()<br />
<br />
'imgAttributes.SetColorMatrix(clrMatrix,<br />
'ColorMatrixFlag.Default,<br />
'ColorAdjustType.Bitmap);<br />
<br />
End Sub<br />
|
|
|
|
|
First, you don't need a UserControl. All you have to do is create a class file and inherit from PictureBox. Which is what you actually did in the first place. All you did was change the inheritance from UserControl to PictureBox.
Next, it looks like all you're doing is replacing the PictureBox's painting code. To do that, get rid of the OnPaint function and move that code to the Paint event instead. You also won't need to call MyBase.OnPaint(). The OnPaint method is used to raise the Paint event, where the actualy painting occurs.
|
|
|
|
|
Trying to add reference to my project by referencing it in References of the project and Right click select add reference/projects tab and selecting the project to reference like Client from Temp but error comes up saying:-
A reference to 'ClientApp' could not be added. An assembly must have a 'dll' extension in order to be referenced.
Can anyone explain what i require to do.
|
|
|
|
|
It would appear the you tried to add a reference to a Windows Forms (.EXE) or ASP.NET project. You can only add a reference to a project that compiles to a .DLL, like a Class Library project.
|
|
|
|
|
Got it was adding reference to the class and not the client. Thanks Dave you refrehed my memory whne you mentioned class.
|
|
|
|
|
For the following lines of code I get an error, Can anyone tell me how to fix it. Thanks in advance
'Open data base
If mdbOpenDataSource(sDBaseName, "", "") = 0 Then
BugMessage("InitSystem: Can't open data base: " + sDBaseName)
InitSystem = False
Exit Function
End If
Error Message:
Unable to load DLL 'mdblib.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E
|
|
|
|