Wednesday 8 January 2014

Solved :Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.



Please Change your app.config.exe file 


find that line in your file
<!--<startup>
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>-->
and replace that line with:
<startup useLegacyV2RuntimeActivationPolicy="true">
 
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
 
    </startup>

just before the configuration end tag like </configuration>




Tuesday 7 January 2014

save yes and no in ultragrid in place y and n in ultragrid column

Hi everyone i have that column in ultragrid 1 so i place that code in initialize row event


Private Sub UltraGrid1_InitializeRow(sender As Object, e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles UltraGrid1.InitializeRow
        If Not IsDBNull(e.Row.Cells("ACTIVE").Value) Then
            If (e.Row.Cells("ACTIVE").Value = "Y") Then
                e.Row.Cells("ACTIVE").Value = "YES"
End If

     End If

    End Sub