how can I create text file using cfml - cffile

How to generate text file using ColdFusion web development,
and how can I perform write,update,delete actions.

Related

Preview Word & Excel in a PDF control connector/API

I have a custom entity where I am using the file type column in dataverse and I have a workflow that stores every file that is being uploaded to Azure blob, delete it from Dataverse and fill up the URL of the file in another column.
The user should be able to preview any document type that is being stored in Azure blob based on the file path of the form. Previewing the file should be in the canvas app and not inside model-driven.
In Azure Blob, we can only preview PDF and image files, and the canvas app only supports seeing those files.
However, when it comes to Word and Excel documents, users will not be able to preview the file and the only option will be to download the file to their local desktop since there is no API for Azure Blob that supports those formats.
In SharePoint we do have API's to preview documents such as word/excel/PPT etc.. (we can't use SharePoint in our requirements)
I am trying to find a way to allow the user to preview the above-mentioned document types within the canvas app.
Is there any 3rd party API we can extend in the canvas app that converts other doc types to PDF? I thought of creating a flow that calls an API and responds to power apps to preview the file.
Some helpful content that I found are based on SharePoint/Dataverse but my scenario is totally different where I am using Azure Blob that is:
https://www.youtube.com/watch?v=vqK29FWbLxU&t=221s
https://www.youtube.com/watch?v=GFfAkk3g1y8&t=3s
https://pcf.gallery/notes-attachment-file-preview/
Any help is highly appreciated.

How to create multiple PDF file in OpenACS

Currently I can generate a single PDF file using this process:
ad_returnredirect to ADP pages (the PDF template)
Create a PDF using the eval [template::adp_compile -file $template].
ad_returnredirect "/pdfs/$folder/${fileprepend}.pdf" to file location to download.
But what I need is to generate a multiple PDF files. I tried to use the same process and add a loop... but as you can see it requires to visit the ADP pages first before it can generate template and create a PDF files, is there any other way to create a PDF files in sub-process without visiting the pages for template?
HTTP file delivery only allows one file to be returned, and there is no way to package multiple PDF files in one return. So I understand it's HTTP and not OpenACS that causes your "problem".
I'd just setup one page with links to all the PDF document you'd want the user to download. Or you could zip them together into one file.

asp.net mvc create csv file in memory without creating a physical file and send email as attachment

I'm working on asp.net mvc web application development, where I need to create a CSV file in-memory and send as attachment of email.
I had a look at this stack overflow solution below:
Export C# List to Csv file
Unfortunately, this solution returns File Result and doesn't fit with my requirement.
Any help will be much appreciated.

Is it possible to retrieve Lotus notes rich text without using Lotus notes api?

I need to create a application which receives a lotus note document file . Is it possible to retrieve Lotus notes rich text without using Lotus notes api?
You also can get rich text via http/https, using web API. HTTP task should be turned on to use this method.
Just use a request as follows:
server/databasefilepath/databasename/viewname/selectionkey/richtextitemname?OpenField
This will return you rich text item, transformed into html, that is realy userful.
Yes you can by using Domino XML Language (DXL). This renders an XML style format that you can then work through however it is complex if the user has added lots of bullet points, bolding the odd image etc.
You will have to use CreateDXLExporter() either in your app or rendered via web from a notes agent however once you have built it, each document will be available to you and in fact the entire database.
HTH
If you can't use HTTP task as shiv suggested, you can try this tool by Julian Robichaux http://www.nsftools.com/tips/NotesTips.htm#richtexttohtml.
Notes from the author:
This database has a script library that describes a technique allowing
you to get the contents of a regular Rich Text field as MIME/HTML,
even if that field isn't set to store contents as MIME.

Upload pdf on a server with Spring MVC

i try to create a web site where it will provide an option to the user to upload a pdf file. I want this pdf to be saved on the server with specific url. For example:
The user select the title.
The user upload the file.
I want after these actions the file to be accessible via a specific url/name_the_user_give.
I saw that the Spring MVC provides very easy interface for file uploading.I already see many tutorial about this but my problem is how can i save the paper into a server.Also i want the pdf to open by the browser's tools.Can anyone give me directions?
To save the file on server path you simply needs to write the file stream to the path described by
request.getServletContext().getRealPath("your directory name here");
and then create the file using the real path you get.
And to show the pdf file using browser plugin, you should use following in your controller method.
#RequestMapping(value="url to map", produces={"application/pdf"})
Hope this helps you.
Cheers.

Resources