how to store adobe page maker data in database? - c#

One of the educational data was stored in adobe page maker file (.PMD) file. Which consist of scientific formulas like mathematical equations, chemistry formulas, I would like to store those data on a MSSQL database then represent in browser. I tried to read PMD file data using C#.NET unfortunately I didn’t get the results which I required.
Can anybody help me regarding this?
Is there any possible ways to read page maker data instead of C#.NET?
Is there any chance of getting the result if we convert the PMD file to another extension?

Sorry, I am not familiar with PageMaker, so just speculating.
You can try to convert to Indesign file:
https://helpx.adobe.com/creative-suite/kb/open-pagemaker-files-indesign.html
Indesign has XML export and script support.

Related

How to update data in excel File using C#?

This Question might be repeated, But I couldn't get solution regarding my problem so far. I'm new to Interop. I'm using excel file (as a database).
Here is data presentation in excel file
in my data If Card ID repeated then I need to increment '1' in Counter in the same row, similarly I need to fetch IP address of same row..
I'm using Interop Excel approach to insert data in excel file..
Kindly tell me how can I perform that update operation to that excel file through C# (WPF)
Sorry for bad English..
Thanks
I recommend using Closed XML
You write to the file directly and don't need Excel. It will need to be the latest version of an Excel file to work (The open xml standard).
Epplus.dll or npoi.dll will also read/write to excel files w/o excel.
Save the data in an XML or JSON file, then when you want to visualize them you create the excel file from these data, so you will have a very light file and easy to read and update if you wish.
I haven't done this specifically through wpf, but you can access powershell cmdlets through .net and powershell has commands for retrieving and writing Excel data.
That said, my experience has been it's very tedious and inconsistent with bugs. I would tell your client that using an Excel file as a database is impossible and certainly prone to failure in practice.
For one thing you will run into read/write restrictions if it is used by anything else.
If you don't mind to use comercial libraries, you can try to use Aspose.Cells. It has rich cells API and able to work without Excel interop API.

Pull Data from an excel sheet, based on a textbox contents

Okay, I'm currently writing an Audit program for the company I work for to allow us do Audits easier than our current process.
PROBLEM:
I'm struggling to get or find a way for VB to reference a stock file (Excel, can be converted to txt delimited files etc.) with a barcode(column 1), and pull a code(column 2) and the description(column 3) from it and put that data in two other text boxes.
I'm currently using a Windows Form Application, so C#.
Could someone please point me to an article or explain how to go about this?
Option:
Connect to the excel via oledb.
Reading excel file using OLEDB Data Provider
Option:
Convert the excel file to a txt file, and read it with StreamReader.

Display a table from Excel as html table - c# asp.net

I have an Excel file with a formatted table. Right now I have a database in sql server, I'm pulling the data into my c# asp.net program. I want to know if anyone has an idea of what I should try to use that Excel format to display data from a query at a webpage without having to go in and construct the table from scratch. I tried looking for a good tutorial on how to import an excel file and use it as a template for crystal reports, had no luck. Any advice would be greatly appreciated!
I have used a third party component called ASPOSE.NET to acheive this. ASPOSE provides extensive formatting options and support a wide variety of file formats.
However it is not a free product.

How to convert PDF to Excel in C#?

I want to read tables which are in a PDF document and I want to store these values in a Database.
What I have found so far through searching the web:
Read text from PDF using abcpdf .net, which is freeware available. But it's not right solution because I want to read the tables.
Convert PDF document into Excel/Word. Tables will come in the target document as it is. Word conversion is possible by using EasyPDF Converter which is third party tool which is much cheaper than the other solution available in other tool which converts PDF into Excel.
But I am looking for any other solution/API classes which can convert PDF into Excel.
There are 2 possible solutions
a) Cometdocs makes a free online conversion from PDF to XLS surprisingly good and send for your email the result file.
b) Cognview is a comertial shareware that converts PDF to XLS. There is OCR and text version. I didn't use personally, but they have good recomendations.
If you are looking to upload your data into a database, converting your PDFs to CSV is probably the safest option. The PDFTables API will allow you to do this with C#, converting as many PDFs at once as necessary. https://pdftables.com/pdf-to-excel-api#csharp
You can try to use Quablo, a PDF table extractor available at this web page (link updated/corrected).

Export Data to Excel without Server-side install

I want to export my data from grid view to the excel. Unfortunately i came to know that there is no excel software on server side. Is there any way that i can still export data in excel format without having excel software on server side.
Thanks.
you can create a CSV format text file, which excel can understand.
This question also outlines some other options you might be able to use, with pros and cons of both.
This must be one of the most asked questions on Stackoverflow.
See Create Excel (.XLS and .XLSX) file from C# For lots of suggestions and a whole list of linked questions.
One trick you can use it to export the html table to the client with the extension of .xls. When the user opens the document with Excel and resaves it will become a real excel document. The fun part is it will retain most of the formatting from the HTML view. This works with HTML/TABLES, I'm not sure about DIV/SPAN/CSS.

Categories