Newbie questions - string variable sizes, appending local files, simple PDF printing - Forum

Forum Navigation
You need to log in to create posts and topics.

Newbie questions - string variable sizes, appending local files, simple PDF printing

Hi All,

I've been playing around with VisualNeo Web and want to build a fairly substantial application. Before I put in lots of time and effort, I have some fairly simple questions I hope you can answer for me.

  • What is the limit on the size of a string variable?
  • How do I specify the name/path of a local file? I've tried lots of variations but can't seem to get it right. If my file is called "test.txt" and is in C:\Test, how would I load it into a control or variable?
  • If I combine several files together into a control or a larger file, is there a simple way to convert it into a PDF and then print or mail it? I'd be looking at putting several RTF documents together into a single file and then turning it into a PDF that I can print, mail or save. Rather than building a PDF line by line, I just want to convert a read-formatted RTF or HTML document simply.
  • I know JS libraries can be used but is there any way to use ActiveX controls or similar, so that I can buy any controls I need, rather than trying to reinvent the wheel?

I know this is a lot of questions but I just need to know if these things are possible or feasible before I start to put together a fairly major project with VisualNeo Web as the tool being used. I spent an afternoon looking through the forum but can't seem to locate answers. which is why I've posted.

Thanks for any advice or response!

Paul

 

 

 

@silverback welcome to the forum :)

It's very important to know if you are working with VisualNEO Web or VisualNEO Win.
They are quite different.

Thank you.

Hi. Thanks for your reply. It's VisualNeo Web.

What is the limit on the size of a string variable?

@silverback there is no specific limit on the size of a string variable, it depends on the device and web browser available memory.

How do I specify the name/path of a local file? I've tried lots of variations but can't seem to get it right. If my file is called "test.txt" and is in C:\Test, how would I load it into a control or variable?

It depends if you are working with local files, local files under a web server or remote files.
Most commands will help you to get the local file at design time and publishing it the correct way once the app is compiled.
If you check the YouTube video tutorials you will see some samples for loading local and remote files.
If you need additional samples for a specific situation just ask here and we will try to help.

If I combine several files together into a control or a larger file, is there a simple way to convert it into a PDF and then print or mail it? I'd be looking at putting several RTF documents together into a single file and then turning it into a PDF that I can print, mail or save. Rather than building a PDF line by line, I just want to convert a read-formatted RTF or HTML document simply.

Forget about RTF files when using web technologies, you must use HTML whenever possible. neoPDF plugin will help you to convert simple HTML into PDF, but it has many limitations due to the different formats they have.

I know JS libraries can be used but is there any way to use ActiveX controls or similar, so that I can buy any controls I need, rather than trying to reinvent the wheel?

Nowadays it's not possible to use ActiveX controls with web technologies, sorry.

If you are interested in using VisualNEO Web, please keep in mind that it relies in web technologies with all their power and limitations (most of them due to security restrictions)  Web applications are generally considered to be more secure than desktop applications, as they are executed in a sandboxed environment and are not directly connected to the underlying operating system. However, this can also make it more difficult to access certain system resources or perform certain tasks.

Anyway, depending on how do you expect to deploy your projects, you can create hybrid applications. A hybrid application is a software application that combines elements of both native applications and web applications. Hybrid applications are wrapped in a native container (neoEdge or NWjs in Windows or Cordova in Android) that allows them to be installed and run on a device like a native app nad access the local file system with no restrictions. You will find specific forum sections regarding these technologies.

I hope it helps.

Regards.

smartmedia, susan and sinmorph have reacted to this post.
smartmediasusansinmorph