Re: Equivalent of Shellexecute in csharp ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On May 12, 7:38 am, "Diego Armando Maradona" <Some...@xxxxxxxxxxxxxxx>
wrote:
Hi,

I am using toshiba tec sx8 thermal printer for printing our labels,

in My old Delphi application I was using such code;

    ShellExecute(0,'open',Data.cmdbuffer, PChar('/c copy
'+ExtractFilePath(Application.ExeName)+'PRINTER\ZZ3.PRN
'+dmoMain.PRINTER+':'), nil, SW_HIDE);

    frmStockCardReport.QuickRep1.Preview;

    ShellExecute(0,'open',Data.cmdbuffer, PChar('/c copy
'+ExtractFilePath(Application.ExeName)+'PRINTER\ZZ2.PRN
'+dmoMain.PRINTER+':'), nil, SW_HIDE);

After writing new program on .net, How can I write equivalent of above codes
?

Thanks

There is a Process class you can use.

Additiobnally try to print directly from C#, There is a serial port
class that I think you can use for that.
.



Relevant Pages

  • Re: Idiotic programming style edicts
    ... What we have a single statement with multiple labels -- there is ...
    (comp.lang.c)
  • Re: Cannot save Form changes with VBA
    ... If the form and textbox are bound to a field in a table then the ... Private Sub Form_Load ... I use labels on the form to record which file was last loaded. ...   Dim IsOpen As Boolean ...
    (comp.databases.ms-access)
  • Re: Idiotic programming style edicts
    ... What we have a single statement with multiple labels -- there is ...
    (comp.lang.c)
  • Re: OT: Can you still regiser Delphi 3?
    ...   Delphi does very well in that respect but it's really a code compiler ... and not a database Developer Tool. ... The classes in the supplied VCL give you basic access to database ...
    (alt.comp.lang.borland-delphi)
  • Re: Userform - Return Control Clicked
    ... commandbuttons on a userform so that clicking any button runs the same code. ... I modified his code to use labels instead of commandbuttons. ...     Dim LabelCount As Long ...
    (microsoft.public.excel.programming)