CD/DVD/ISO Gravure pour Windows Vista 64 (Vista Burner)

21. December 2006
Si comme moi vous utilisez Window Vista…vous y avez surement perdu quelques plumes (ou plutôt drivers)… Pour ma part, j’ai installé une version 64 bits pour enfin exploiter mon processeur AMD Turion 64 mais sans compter sur l’absence de driver pour la plupart de mes périphériques….mais soyons patients, ils arrivent bientôt . En attendant, je souhaitais graver des images iso et…. surprise !! mes logiciels de gravure habituels sont devenus inexploitables (non recommandé pour vista ou pb de détection matériel) !!! Pour le coup, ce n’est pas ici la version 64bits de vista qui pose problème mais bien vista "tout court" Pas glop. J’ai l’impression de me retrouver face à une installation d’une distrib de linux remontant à 5 ans en arrière… J’ai recherché un peu et voici 2 applications gratuites qui... [More]

Windows

Export a DataTable to CSV format (Excel compatible)

18. December 2006
You can use ExportDataTable method to export a generic datatable content to a CSV format. The following sample is used in ASP.NET context to export the result of a gridview. This code-sample should be place in the handler method of a click button event. protected void LinkButtonExportAsExcel_Click(object sender, EventArgs e) { try { DataView dataView = (DataView)Cache["DataSource"]; if (dataView == null) dataView = GetDataView(); char[] bufferedExport = ExportDataTable(dataView.Table, "CSV"); if (bufferedExport == null) return; Response.Clear(); Response.ContentType = "text/csv"; Response.ContentEncoding = Encoding.Default; Response.Charset = Encoding.Default.EncodingName; Response.AddHeader("Content-Disposition", "attachment;filename=Export.csv"); Response.AddHeader("Content-Length", Encoding.Default.GetByteCount(bufferedExport).ToString()); Response.BinaryWrite(Encoding.Default.GetBytes(b... [More]

C# sample code, Office ,

How to publish an assembly to the GAC while building VS project

8. December 2006
Open class library project properties > Build events and add this script in post-build command line : "$(DevEnvDir)..\..\SDK\v2.0\Bin\gacutil.exe" /u $(TargetName) rem IF NOT $(ConfigurationName) == Release GOTO end :: Copying assembly to the GAC echo Copying assembly to the GAC "$(DevEnvDir)..\..\SDK\v2.0\Bin\gacutil.exe" /i "$(TargetPath)" :end echo Finished Post Build Event     The path could be different (bold text). You may have to change it by something like C:\Program Files\Microsoft.NET\SDK\v2.0\Bin\gacutil.exe (…and v2.0 by v1.1 for an older framework version….) or C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\gacutil.exe (for the recent Windows SDK Win32+.NET 3.0)   

.NET Projects