Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sevan

@sevan
About
Posts
14
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Windows Services
    S sevan

    i wrote this code to create a marker file("TMP.txt) on another PC. try { FileInfo TMPfile = new FileInfo(@"\\TERM1\\BOOTDRV\\TMP\\TMP.txt"); StreamWriter w = TMPfile.CreateText() ; w.Close(); } catch(Exception exp) { EventLog.WriteEntry(exp.Message); } Access to the path "\\Term1\\BOOTDRV\\TMP\\TMP.txt" is denied. i wrote the same code in Windows Application and it's creating tmp.txt on term1. ************* so with windows app i have access but not with windows services ????? Please need help.

    C# help question

  • Export a crystal report
    S sevan

    HI! does anyone out there knows what dll is needed in order to export a crystal report file to a txt file. i wrote this code, i can only export report to "PDF, Excel, Word Doc, RTF Doc,HTML 3.2, HTML 4.0 or CrystalReport" // The path/location where the exported file will be saved string exportFilePath = ALOHA_PATH+"\\RPTFOH\\Report1.DOC"; // Create an instance of the untyped report object ReportDocument oRpt = new ReportDocument(); // Load the report from disk oRpt.Load(@"C:\Aloha\RPTFOH\Report_1.rpt"); // Set the options for saving the exported file to disk DiskFileDestinationOptions oDest = new DiskFileDestinationOptions(); oDest.DiskFileName = exportFilePath; // Set the exporting information ExportOptions oExport = oRpt.ExportOptions; // Set the destination options oExport.DestinationOptions = oDest; // Set the location, this can be: // DiskFile, ExchangeFolder, MicrosoftMail or NoDestination oExport.ExportDestinationType = ExportDestinationType.DiskFile; // Set the Export type, this can be: // PDF, Excel, Word Doc, RTF Doc, // HTML 3.2, HTML 4.0 or CrystalReport oExport.ExportFormatType = ExportFormatType.WordForWindows; // Call the Export method to export the report oRpt.Export(); thx

    C# html

  • Export Report To txt file
    S sevan

    how can i append this code to be able to export report to TXT file. "ExportFormatType" // Set the Export type, this can be: // PDF, Excel, Word Doc, RTF Doc, // HTML 3.2, HTML 4.0 or CrystalReport but not txt ???? string exportFilePath = "c:\\Report1.txt"; // Create an instance of the untyped report object ReportDocument oRpt = new ReportDocument(); // Load the report from disk oRpt.Load(@"C:\Aloha\RPTFOH\Report_1.rpt"); // Set the options for saving the exported file to disk DiskFileDestinationOptions oDest = new DiskFileDestinationOptions(); oDest.DiskFileName = exportFilePath; // Set the exporting information ExportOptions oExport = oRpt.ExportOptions; // Set the destination options oExport.DestinationOptions = oDest; // Set the location, this can be: // DiskFile, ExchangeFolder, MicrosoftMail or NoDestination oExport.ExportDestinationType = ExportDestinationType.DiskFile; oExport.ExportFormatType = ExportFormatType.WordForWindows; // Call the Export method to export the report oRpt.Export();

    C# question html

  • pass dataset to new database
    S sevan

    dataset i created with some merges, i want to put that dataset into another empty database that has the same datastruture already.

    C# database

  • join DBF files
    S sevan

    dataset i created with some merges, i want to put that dataset into another empty database that has the same datastruture already.

    C# csharp tutorial

  • Pocket PC disable toolbar Start
    S sevan

    i trying to wirte a code to disalbe toolbar start , and run mstsc40.exe using System.Diagnostics; i can't use Process object !!!

    C#

  • datagrid Scroll
    S sevan

    How do I programmatically scroll the datagrid to a particular row? For example. dataGrid1.Select(200); On the datagrid, selected row is 200 but the scroll bar is not in the same location. Thanks.

    C# question tutorial

  • calculate total time "Access"
    S sevan

    Well I am not calculating starting time and end time For example I have 10 textbox each one has a different time I just want to add them up so the total will not round up. 20:00 hours Plus 6:00 the total hours should be 26:00, But coz it's time Elapsed, the total is 2:00 hours instead of 26:00 H

    Visual Basic help tutorial

  • calculate total time "Access"
    S sevan

    i am creating a report with Access, i want to calculate the total time spend for example x =Sum([Serv_Rec_Time_Spent]) x is 23:30 H for example, if i add 2 hours then x = 1:30 , instead of 25:30 hours please i need help ASAP

    Visual Basic help tutorial

  • Datetime regional format
    S sevan

    when i write the date in win.txt it was like this Lsbox_Date.Items.Add(DTP_Today.Value.ToShortDateString()); so if the regional setting was set to MM/dd/yyyy it will write the date the same as regional setting so i change it to this which always gonna be dd/mm/yyyy Lsbox_Date.Items.Add(DTP_Today.Value.Day.ToString()+ "/"+DTP_Today.Value.Month.ToString()+"/"+DTP_Today.Value.Year.ToString()); when i read the win.txt this code is reading the date from win.txt StreamReader Read_key = File.OpenText(@windir+"\\Win.txt"); string key_Trim; string key; key_Trim = Read_key.ReadLine(); key = key_Trim.TrimEnd(); Read_key.Close(); Convert the key to datetime DTP_Key.Value = Convert.ToDateTime(key.ToString()); so if the regional setting is set to dd/mm/yyyy i have no Problem coz the format is the same but if the regional setting is set to mm/dd/yyyy then i get an error converting the key string. i need help pls ASAP

    C# help

  • .NET Framework on NT 4.0
    S sevan

    The .NET Framework 1.1 install fails when regsvcs.exe attempts to register System.EnterpriseServices.dll. it will install on Windows NT with Pentium 3 processor, but not on Windows NT with Pentium 4 processor. The necessary prerequisites are installed - ie SP6a and IE6 SP1. thank you

    .NET (Core and Framework) csharp dotnet

  • Crystal Report
    S sevan

    i wrote a an apllication with C# and i used crystal report 8.5. i installed the application on XP and 2000 and NT, i don't have any problem with Reports on XP and 2000. but i do on NT when i run the app on NT the reports in cyrstal viewer are not up to date i have to click Refresh more than 3 or 4 times to show me the latest data. **** i created the Reports with ODBC connecting to DBF file **** Please i need Help ASAP. thank you

    C# help csharp

  • Find and replace in text file
    S sevan

    find string Expire and change the first two lines after Expire to Code project example Expire 12345 23423 cool To Expire Code project Code project thx

    C# tutorial

  • NT 4
    S sevan

    i wrote a stock Count Application with C#, i didn't have any problems to run my application on XP and 2000, but i did on NT. when i run the application it working but when i try to Update data to stock.dbf i get error dialog box. only on NT 4 See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Data.OleDb.OleDbException: Operation must use an updateable query. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at Stock.frmEdit.btnSave_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- System.DirectoryServices Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573

    C# csharp announcement database dotnet graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups