PDFPrinter driver with ability for custom file name - html

Does anyone know of a PDF printer driver that allows you to programatically set the file name for printing/saving.
Im not sure if its possible with PDFCreator, but Im unable to figure it out.
So I am creating HTML Reports and have a print button to print it to PDF.
But now I have to automate it more so that it will be able to generate the PDF with a certain name. This without human interaction.

Win2PDF has several ways to do this.
The Auto-name feature can automatically name the PDF file, and can use the document title to name the files along with configurable date/time stamps. This can be configured with no changes to your program.
The file name can also be set by your program using the Windows API or by setting a string value in the registry named PDFDefaultFileName.

Related

Download files from object storage in visual app of Oracle Visual Builder. How to use data from ATP Database to get dinamically the name of the files

I am trying to download specific files from the Object Storage in the Oracle Cloud in my Oracle Visual Builder App (my visual builder is inside OIC, Oracle Integration Cloud).
I'd like to use the name of the "File URL" column (see the picture above) as the file name of the file to download from the Object storage, but this file name should be different from every download button (again in the picture above, you can see that every download button should download the file that has the name of the value of the "File URL" column). The File URL column is the field of a business object which is linked to the SDP variable and the data arrives from an ATP database that is inside the Oracle Cloud Infrastructure. The column "First File" contains the Download buttons. In the properties of this button there is an ojAction event which is linked to an action chain (see picture below).
I followed this guide (Download from OCI Storage section) to download one file, but I mapped the "filename" input parameter with a fixed value (the name of an existing files inside the object storage). Now, I'd like to make the filename value dynamic, but I don't know how to create a variable that gathers all the values of the specific column (File URL) in the DB and how to pass the single value of this column to the filename parameter. I have tried to create an SDP type variable that gets only the File URL values, but it's not getting the values of the file names. Do you have suggestions or have you seen a guide that is maybe useful to solve this issue?
If I understood the problem correctly, you can't retrive the specific file URL linked to the row button the user click in order to download the right file.
If that's the case, then instead of using a button, you could use the "first-selected-row" event linked to the table itself; that will pass all the values of the selected row as parameter, and will allow you to link "$variables.rowData.fileURL" or whatever the field is called to the REST call.

Automatically format .csv file upon download?

I have a form that will open a file based on user's selections. A few files are .csv and those files open up in Excel, as expected. However, everything is placed into one cell... I know that there is a way to manually configure it so that the | or , are delimiters, but is there a way to set it so that Excel will automatically set the | as a delimiter?
Thank you in advance!
Because you use the word "download" and your question is tagged "html", I assume that the user interacts with a web form rather than a desktop form.
In that case, it's the web browser that decides what to do with the file. If the browser recognizes the content-type of the response as something it can handle natively (e.g. "text/plain" or "image/jpeg") then it may open the file and display it directly.
However if the content-type is not something it knows how to deal with (which is likely the case with "application/csv"), then it will download the file and ask the operating system to open it. At that point, the filename assigned to the file (which can be set via the HTTP response) may come into play.
On a Windows machine, the operating system maintains a list of file extensions and actions associated with those extensions. When you install Excel, that will normally make Excel the default "open" action for files with the ".csv" extension. That's why double-clicking on a ".csv" file opens in Excel, and also why it may open in Excel if you download it from a website. (If you didn't have Excel, it may simply ask you what program you want to use).
This is a long-winded way of saying that if you had control over the user's machine you could give the file a different file extension and then associate that extension with an action that did something different. But, I assume that you probably don't have that sort of control unless you're dealing only with in-house users, and anyway it would not be a trivial thing to achieve.
I don't think that there's any way to communicate to Excel via the command line that it should use a particular delimiter when opening a CSV file, and that - unfortunately - is the mechanism by which the operating system will ultimately open the file.
It is possible to control what Excel uses as the default delimiter for all CSV files (see https://superuser.com/a/606274/18472) but again that would require you to change the system-wide settings on your users' machines, which I imagine would not be possible.

MS Access: pass attached file into adobe PDF control

I have a form / report that I need to get images to display on, but they are all received in PDF format which the attachment control can't display.
To get around this I was planning on using the Adobe PDF activex control, but I can't just pass it a file path since this database will be used for reporting by people that do not have access to the network shares these PDF files will be on.
Ideally I would like to store the file in the database and then pass this stored version into the control. I am having trouble finding documentation on what I can do with the adobe pdf control.
I am imaginging something like:
AcroPDF1.LoadFile (Me.attachment)
Is this possible?
What you need a database-linked PDF viewer.
Delphi: http://www.gnostice.com/nl_article.asp?id=274&t=Data_aware_VCL_component_to_display_DOCX_PDF_BMP_PNG_JPEG_from_a_database
.NET: http://www.gnostice.com/nl_article.asp?id=279&t=How_to_save_and_retrieve_PDF_documents_to_and_from_a_database_using_C
You will have to modify the data source with a network DB.

Is there any way to fill in Sharepoint entries via parsing text file?

My workplace has a whole bunch of unannotated .zip files that need to be uploaded to the new file server (Windows). I've used perl to parse through through the excel files within the .zip files to create an annotation.txt file for each .zip file that contains information about the .zip file. I have 1000's of zip files and do not want to manually enter in information for each entry if there's a way to automate it. I am proficient in perl and mysql, and wondering if there is any way to utilize my skillsets to port this information into the Microsoft Sharepoint website.
Thank you in advance for any advice or suggestions.
There a many, many ways to meet your requirement.
You could write a event receiver to parse the files once uploaded and set metadata.
A better approach for your use case might be to write a .NET based console application and reference Microsoft.SharePoint.Client and then upload your files using the Client side object model (CSOM) and set the metadata during that process as outlined here: Upload a document to a SharePoint list from Client Side Object Model
There are also REST and ASMX webservices that you could call from a non .NET runtime process.
Plenty of options, pick the one that fits your needs and skills best.

Report saved file as parameters name

I have a report that is going to be saved as .doc or .pdf, my boss wants the name of this file to be saved as the parameters name [it could contain multiple values], but he chooses the file format.
how can I get this done in reporting services?
thx!
You can't from Report Manager whihc is where I suspect you mean
You'd have to wrap a call to ReportServer using SOAP, passing in parameters externally, and renaming in your wrapper. The wrapper would be ASP.NET or WinForms or such.
Alternatively, you may be able to have a custom renderer.
Edit: what your boss asks isn't always possible, even for your boss...
override or handle render method and customize the file name based on parameters provided