Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ManniB

    Oplock when installed on local pc but data is on network server?

    Why do you feel the need to insult me?
  2. ManniB

    Oplock when installed on local pc but data is on network server?

    Chris, I haven't invented that approach and I'm not justifying it, but I have to work with it now as it is and potentially change it in the future. I was bringing up that example to underline I'm not the only one using it and you comfirmed you know a lot of people who work that way, too. I feel...
  3. ManniB

    Oplock when installed on local pc but data is on network server?

    The setup on the server creates a folder where the application exe, DBF-files, DLLs etc. are stored. Everything else, how shares are created is left to the user, it's not part of the installer. And most of these shares have of course been created a long time ago and are running. As a developer I...
  4. ManniB

    Oplock when installed on local pc but data is on network server?

    Yes, the client PCs start the exe from the server. I know this configuration is not ideal, but has been around for a long time and Doug Hennig also mentions it in one of his papers. I'd like to change that soon, so the shortcuts on the clients will point to a launcher exe on the server instead...
  5. ManniB

    Oplock when installed on local pc but data is on network server?

    Chris, we don't use terminal servers. The installation of updates always has to be done on the "server". The "server" is the pc where the DBF files and the exe file of the VFP app are located. During this installation the smb server settings can be changed. The other workstations ("clients")...
  6. ManniB

    Oplock when installed on local pc but data is on network server?

    Thank you, Chris. I'll think of new a way during installation to try to make the setting set-SmbServerConfiguration -EnableLeasing $False only under the condition that leasing hasn't been disabled for any of the existing shares using Set-SmbShare -Name "Sharename" -LeasingMode None This...
  7. ManniB

    Oplock when installed on local pc but data is on network server?

    Chris, usually we don't get involved much in the installation of the application or setting up the shares or mapped drives. We leave that to the user himself or his administrator. We only tell them to create a shortcut on the workstations pointing to the exe on the server or pc where the data is...
  8. ManniB

    Oplock when installed on local pc but data is on network server?

    Chris, yes, turning leasing off for the share containing DBF files is enough and I don't use several shares for the VFP applications. I think the option to turn of leasing of a specific share was introduced later and I didn't have the time to update the application yet. Usually, admins are...
  9. ManniB

    Oplock when installed on local pc but data is on network server?

    Yes you can turn off leasing for a specific share using this command. Alternatively you can turn off leasing for the whole server with the following command without knowing the names of all the shares: set-SmbServerConfiguration -EnableLeasing $False I also found these settings, so shares...
  10. ManniB

    strange report behavior

    Foxup, are you using Foxypreviewer at all? Or do you print your report directly? Is the pdf still cut off when you put this in your main.prg DECLARE INTEGER SetProcessDPIAware IN WIN32API SetProcessDPIAware() and in Windows put the scaling factor to 100%. If the problem still remains, I...
  11. ManniB

    Oplock when installed on local pc but data is on network server?

    Yes, that's essentially the setting you have to deactivate on the server (where data is stored) when using SMB-2/3 (default in Windows 10/11) with VFP. The oplocks setting is relevant only for SMB-1, but it's not recommended by Microsoft to go back to SMB-1.
  12. ManniB

    Oplock when installed on local pc but data is on network server?

    The problem often talked about is when you run a VPF application on your local PC, but the data is on another workstation or "server". Then issues with oplocks etc. can appear. When you have all the data on the same PC as the application (hence a single user application), then there shouldn't be...
  13. ManniB

    A way to make all ReadOnly

    In case you want to make all controls including buttons disabled, instead of thisform.SetAll("ReadOnly", .T.) or thisform.SetAll("Enabled", .F.) you could also simply say thisform.enabled = .F. to disable the whole form. At some point later you have to set thisform.enabled = .T. again or...
  14. ManniB

    Windows 11 - any problems noted?

    Chris, I will try and expirement with it when I find the time. Thanks, Manni
  15. ManniB

    Windows 11 - any problems noted?

    Sorry, DEVNAMES struct is only relevant when you parse the fields of the DEVMODE structure. It's not relevant when you use the DEVMODE structure as it is. Sometimes it's not enough to have all the ingredients to cook a tasty meal :) It might sound easy but working with these APIs gave me a...
  16. ManniB

    Windows 11 - any problems noted?

    Chris, there's something to look out for, the printername can be longer than 50 characters and you have to use other Win32 API function to get the whole name (DEVNAMES structure), making it a bit more complicated.
  17. ManniB

    Windows 11 - any problems noted?

    Chris, the idea of saving the DEVMODE structure instead of the information for expr1 would allow for more settings to be saved. Like you said very well it would be better than relying on the expr field and would save work parsing the information of the DEVMODE structure or SYS(1037). But there...
  18. ManniB

    Windows 11 - any problems noted?

    Thank you Chris, I'm understanding it now. But still, the changes wouldn't be saved in combination with a repor but be applied to all reports which use that printer. I need to have the settings stored in association with the name of the report. Regards, Manni
  19. ManniB

    Windows 11 - any problems noted?

    Chris, I wasn't familiar with the DocumentProperties menu, probably because it was abolished since Vista. I see that it is providing you with all the options. But if you were formerly calling it via Sys(1037) or by calling the Win32 API function directly, the setting would only be applied to the...
  20. ManniB

    Windows 11 - any problems noted?

    Chriss, thank you for your lengthy response. I see, for barcode readers you need a certain saturation level and settings for the printer that I never needed. In fact, when such settings are needed with my solution you can easily still do these in the Windows configuration of the printer or add...

Part and Inventory Search

Back
Top