Jump to content

audi30tdi

Members
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. audi30tdi

    Tmapimail

    Hello! Have setup a windows XP and Delphi 7 on a VMware Workstation, and there I have made a program using TMapimail to send a report using Outlook. So the question is, is it possible to run the program on WMware and send the report from the Outlook on the host computer??
  2. audi30tdi

    EHF Invoice

    @skrim Great! Looks like you is an expert, do you know of links to delphi code also for making the file?? Or maybee you have a small code showing me??
  3. audi30tdi

    EHF Invoice

    @Skrim Ok, then I need info for making the file and sending it
  4. audi30tdi

    EHF Invoice

    It looks like the Norwegian EHF is based on the PEPPOL BIS Billing 3. Is that the same as you send me a link to??
  5. audi30tdi

    EHF Invoice

    @mjustin, I must check if the EHF used in Norway is related to EN 16391, but thanks!
  6. audi30tdi

    EHF Invoice

    Hello! Is there anybody who has made software that can send EHF invoice, and would share some info how to get it to work, and maybee some code??
  7. audi30tdi

    Which registry to edit

    Because I thought it was best to make a new topics as I got a new idea for getting a solution to my problem...........
  8. audi30tdi

    Printer port

    I need to change the ipadr for the printer
  9. audi30tdi

    Which registry to edit

    Hello! Which key should I edit if I want to change printer settings, like the port etc?? When I search the registry for the printers ipadr, I find many place where it is. Have edit the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Phaser 6130, but it doesn't change the value when I check the controlpanel and printer settings there. Also tried to change the value in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Phaser 6130\DsSpooler, but it did not change in the registry! Is that because I only can change one value before I close the key?? I find all of this key; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Phaser 6130 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Phaser 6130\DsSpooler HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Print\Printers\Phaser 6130 HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Print\Printers\Phaser 6130\DsSpooler HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Phaser 6130 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Phaser 6130\DsSpooler HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Phaser 6130 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Phaser 6130\DsSpooler should I change everyone?? Do I have to add a new ethernet port in registry, before I can change the port to this new ethernet adr?? Regards Kåre!
  10. audi30tdi

    Printer port

    Is it not possible to change printer port from Delphi code??
  11. audi30tdi

    Printer port

    Hello! How can I by Delphi code change the port of my printer?? What code to use if I want to use LPT1, USB00x, COM1 or ipadress?? Regards Kåre!
  12. audi30tdi

    System error - printer port

    Hello! Why does the following code give me an system error. Code 5. No access. This happens if I choose a printername from memo1 which have a different port then an ethernet. procedure tform1.Display(const prefix: string; S: PChar); begin memo1.lines.add(prefix + string(S)); end; function GetCurrentPrinterHandle: THandle; const Defaults: TPrinterDefaults = (pDatatype: nil; pDevMode: nil; DesiredAccess: PRINTER_ACCESS_USE or PRINTER_ACCESS_ADMINISTER); var Device, Driver, Port: array[0..255] of char; hDeviceMode: THandle; begin Printer.GetPrinter(Device, Driver, Port, hDeviceMode); if not OpenPrinter(@Device, Result, @Defaults) then RaiseLastWin32Error; end; procedure TForm1.Button14Click(Sender: TObject); var pInfo: PPrinterInfo2; bytesNeeded: DWORD; hPrinter: THandle; u,i: Integer; sant : boolean; begin u:=strtoint(edit4.Text); i:=-1; sant:=false; repeat i:=i+1; { for i := 0 to printer.Printers.Count - 1 do begin} Printer.PrinterIndex := i; hPrinter := GetCurrentPrinterHandle; try GetPrinter(hPrinter, 2, nil, 0, @bytesNeeded); pInfo := AllocMem(bytesNeeded); try GetPrinter(hPrinter, 2, pInfo, bytesNeeded, @bytesNeeded); if pinfo^.pPrinterName=memo2.lines then begin Display('ServerName: ', pInfo^.pServerName); Display('PrinterName: ', pInfo^.pPrinterName); Display('ShareName: ', pInfo^.pShareName); Display('PortName: ', pInfo^.pPortName); sant:=true; end; finally FreeMem(pInfo); end; finally ClosePrinter(hPrinter); end; { end;} until (i=printer.printers.Count-1) or (sant=true); end;
  13. audi30tdi

    Printer IP

    Hello! Is it possible to check and fine what ip I got on the wan side?? And how can I set the printers ipaddress?? Have dhcp on my ISP, and as I use a redirect on my printer from my office, I had to change the ipadr the printer should use very often. I hope I could make a program that read my wan adr, and could set this ip to the printer settings in windows automatically! Regards Kåre!
  14. audi30tdi

    Printer ip

    I know, but the ISP is only provided DHCP for my kind og connection, so therefor I was looking for a Delphi code/information to make my own program to get my wan address and set that to my printer settings in windows. So if that program is just checking every day, it will work just as I have static IP
  15. audi30tdi

    Printer ip

    Hello! Is it possible to check and fine what ip I got on the wan side?? And how can I set the printers ipaddress?? Have dhcp on my ISP, and as I use a redirect on my printer from my office, I had to change the ipadr the printer should use very often. I hope I could make a program that read my wan adr, and could set this ip to the printer automatically! Regards Kåre!
×