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...
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...
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...
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")...
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...
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...
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...
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...
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...
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.
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...
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...
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...
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.
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...
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
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.