Ever since Visual Studio has released it’s latest version, quite a number of developers who have implemented the crystal reports (bundled) on their previous version are searching if this new VS have the crystal report supports. Apparently, there is and it is currently posted with updates on SAP blogs. This means that, SAP will be providing the crystal report for free, providing the same Crystal Report 2008 EULA. No registration is required.
As in previous version, Crystal Report is bundled together with the VS2008 and is released by Microsoft but for this new version, it would require a separate download for the crystal report development tool.
Written by admin on June 9th, 2010 with no comments.
Read more articles on Programming.
While developing one of the apps. for demo on a touchscreen device, it came to surprise on the application windows sizing function. I have set the formborderstyle to fixedsingle in hope to disable the application from resize but it seems that it was able to shrink/un-maximize from maximized application. I tried playing around with the values in the window properties but to no avail.
I search around the net and found an interesting code snippet posted on Microsoft community newsgroup (idea originates from the MVP, Herfried K. Wagner):
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Const WM_NCLBUTTONDBLCLK As Int32 = &HA3
If m.Msg = WM_NCLBUTTONDBLCLK Then
Exit Sub
End If
MyBase.WndProc(m)
End Sub
Having that codes in the winforms disabled the window resizing on double clicking of the title bar. Great one!
Written by admin on May 12th, 2010 with no comments.
Read more articles on Knowledge Base and Programming.
There’s this interface application which requires the execution of batch file and it would need to be triggered when there is an action performed on the web form. While I was doing the coding, this execution process hits me and the code didn’t seems to execute as it should. I even coded the batch file to create an output file which contains some text and it worked out fine. Whereas the batch file that needs to be execute, having quite a number of rows in content, doesn’t want to work. The ASP.NET page just hanged there when executing the batch. The batch file is executed fine when it is manually triggered. This ponders me for sometime. I even tried using the vbscript (.vbs) which executes the batch file in hope it would workaround it but failed. It’s working fine if I manually runs it.
Without further ado, I searched around the net for some ideas. I found some bulletin posted on task scheduler which executes batch file via aspx pages. This came to me into using the scheduler to execute the batch file instead and apparently, it worked. Here, am going to share how I get it working.
I downloaded the library (taskscheduler.dll) from codeproject. The library generally encapsulates most of the function involves on task scheduler including creating, deleting, extracting and executing the task scheduler in Windows. Then referencing the library, I created a simple web form just to test it out if the batch file will get executed as expected, through scheduled job.
Dim st As ScheduledTasks = New ScheduledTasks(“\\pcname”)
Dim taskNames() As String = st.GetTaskNames()
Dim t As Task = st.OpenTask(“SchedulerJobName”)
t.Run()
The above code executes the “schedulerjobName” that was created to run the batch file. And the batch file did manage to run as expected.
That basically get my problem solved!
: )
Written by admin on May 3rd, 2010 with no comments.
Read more articles on Programming.