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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some projects compiled by Net run in VFP

Of course, none of this is free. If you are interested, you can run it in the VFP9 development environment, but releasing an EXE requires my authorization, and this applies in China as well.
Leveraging the .NET ecosystem resources might be the best solution for ensuring the most stable commercial use of VFP.
 
If you want that, you should reconsider your Copyright Notice and don't associate this GitHub repository with the MIT license.

I'm not saying by once choosing and mentioning the MIT license in GitHub you're now forever bound to the terms. It's your repository, your choice.
But the condition you want to have is contradicting the MIT license.

I assume you picked MIT provisionally just as you had to specify a license to create the repos, but now better choose another license or define your own terms and conditions.
 
That said, I looked into your webview2 repository and within your sample project it seems much simpler to me than Christof Wollenhaupts https://github.com/cwollenhaupt/fpCefSharp.

I'm not yet in the details of it, but it seems a better candidate to me as an alternative to the Microsoft Web Browser OLE Control aka Shell.Explorer aka SHDocView of the ieframe.dll

Nice work!
 
If you want that, you should reconsider your Copyright Notice and don't associate this GitHub repository with the MIT license.

I'm not saying by once choosing and mentioning the MIT license in GitHub you're now forever bound to the terms. It's your repository, your choice.
But the condition you want to have is contradicting the MIT license.

I assume you picked MIT provisionally just as you had to specify a license to create the repos, but now better choose another license or define your own terms and conditions.
To associate with the MIT License and indicate that this encapsulation does not involve infringement, since WebView2 itself is under the MIT License, and because you are unaware of what I have encapsulated or what it might involve, it is declared that the encapsulation of WebView2 follows the MIT License. Additionally, if the encapsulated component is to be used in VFP (Visual FoxPro), it is important to reference the license of the source you are using. However, it should be noted that there is no explicit declaration stating that this is not a free project, and distributing the EXE may require proper authorization.
 
You can take a look at another project, NetChart, and compare its performance and features with the original FoxCharts project.
 
You got that wrong. The MIT license is not a perpetual license like the GNU GPL.

MIT licenses allow commercial use. Users do not have to provide any other source code when releasing new software. Including the attributions and original MIT license in the reused code will suffice. And you don't need to put your own derivitive work under the MIT license.

But if you do (as of know) you allow the same usage of your work for everyone and don't restrict usage of your work, as you want to only allow authorized usage. So, well, take it from the good news side: Making the attribution about including the WebView2 under the MIT license does not inject it into your project, i.e. and you can do that duty without putting your work under the MIT license too, but if you do, you refrain from the authorization, you can only claim a license fraud, if work derived from your work has no attribution. But you want more than that, it seems to me.

So again, if you want that, you should change your legal notice quite a bit.
 
What I mean is roughly this: The MIT license allows for commercial use. When releasing new software, users are not required to provide additional source code. In VFP development mode, no authorization from me is needed to learn and understand what WebView2 is and what it can do for you. If you find it commercially valuable and believe it can create value for you, then you must obtain my authorization to package and call it in your EXE project. In the world of C#, there are many open-source resources available for use, but that doesn't mean you can use all of them for commercial purposes. You don't even know the license of the source I referenced—could it infringe on rights? Who would dare use it? By stating that the MIT license allows commercial use, I am clarifying that my reference to WebView2 falls under this license. For example, "DevExpress" can be used, and you can even package it into a DLL for VFP to call, but is that legal? Just because it can be called by VFP, does that make it legal?
 
I think I have a btter understanding of this, but I think I finish this with warnings have been given and it's your choice to do it as you want. The MIT license explicitly grants more rights to anyone coming across your repositories as you want to grant.. So the way you write your The way you di it, you refrain from rights you want to claim, that's how I see it.

Maybe it's all just about you naming your webview2 project just like the WebView2 itself, just once small case, once in camel case, you should just clarify that very explicitly.

Edit: Just to illustrate the impression, it seems to me you're getting the opposite of what I try to bring over to you. I don't want to urge you into a free software license, I understand you don't want that, but the phrasing you have is not as clear as it could be, also given the risk of confusion.
 
Last edited:

iswithzhz--​


I am curious as to your use of ExcelGrid. From the demo, it opens the xlsx file and displays in the screen -- what is the difference than using directly Excel to view the file? Can VFP interact with the cell values directly in ExcelGrid by reading the cell values or writing new values to the cells? Can ExcelGrid save the changes to the existing file or to a new file?
 
In NetOffice v1.55, ExcelGrid supports saving changes to an existing file or saving as a new file by altering the save path.

The purpose of designing ExcelGrid is to address the limitations of VFP FRX reports that cannot be printed, by rendering them in xlsx documents for print preview and printing. It also allows using existing xlsx documents as templates to populate data and generate reports. Additionally, it involves synchronizing cursor movements in VFP forms when interacting with business-specific xlsx documents, enabling real-time display of VFP application data during user interactions.

The ExcelOperate class is designed to handle reading and writing VFP (Visual FoxPro) data without requiring Microsoft Office to be installed. It manages xlsx document formatting elements such as borders, font sizes, and other styling properties. The supported features include:


Functionality List:

  • Cell Range -> OK
  • Cell Styles
    • Borders (BorderStyle) -> OK
    • Colors (BackColor) -> OK
    • Fills (FillStyle) -> OK
    • Fonts (FontSize) -> OK
    • Number Formats (Format) -> OK
    • Alignment -> OK
  • Charts -> OK
  • Images -> OK
  • Shapes -> Pending
  • Comments -> OK
  • Tables (Rows, Columns) -> OK
  • Protection (Lock) -> OK
  • Encryption -> OK
  • Compression Level -> OK
  • Pivot Tables -> Pending
  • Data Validation -> Pending
  • Conditional Formatting -> Pending
  • Formula Calculation -> OK
  • Frx2Excel -> Pending
  • Frx2PDF -> Refer to the WebView2 project.

Notes:

  • Pending: Indicates features under development or not fully implemented.
  • Frx2PDF: Relies on the WebView2 component for PDF rendering and export.
Let me know if further adjustments are needed! 😊
 
Last edited:

Part and Inventory Search

Sponsor

Back
Top