Hello!

I develop a program for generating documents. There are no graphics in the documents (but it is advisable to provide logos), only text and a table. Previously, the docks were in xls, there were experiments with xml with a template from Excel, but I want to get away from the dependency)) PDF does not fit - binary format, I want type xml or json.

You can even in the same html / mht, but each browser will print in its own way and with footers.

Who has any ideas? ))

  • Specify what prog is a server solution or win application? If win, what language do you write and which editor do you use, can you tell me which components to use! - org
  • I am writing on Python, the implementation is suitable, in principle, any, if only she herself would allow it. Accordingly, I will spin based on the proposed solutions)) Ideally, we need a program that performs accurate printing from a text markup file. There is such an XPS - but only Windows 7 knows it, but who knows, it can be adopted, but I haven't tested it enough. There is a PDF format - it is printed very plausibly, but binary - you will have to use various converters, and you will not be able to correct it manually on the fly. - Stan
  • In general, I came across ru.wikipedia.org/wiki/XSL-FO I will dig, an interesting idea, it would be a good realization)) - Stan

3 answers 3

PDF does not fit - binary format

It is not like that.

  • I completely misunderstood your couplet, but thanks for the links)) interesting things, even though I dig up the Internet all day, I did not come across them! - Stan

Well, because you can also make a conclusion on html, which is suitable for all browsers. In general, if you want to get away from the dependencies of different programs, such as PDF and Excel, then htm, in my opinion, is the best way out. Well, what kind of headers and footers in question, if you can turn them off in the print settings. And how xml you type? Or the same json? This is just a form of data presentation. And I am more than confident that there are ready-made solutions for outputting documents in various formats, including cross-browser html.

  • You see, html is solid, there is no sheet separation in it (at least I don’t know about this). I printed XML in Excel - it contained a link to an Excel xsl template - very convenient when data is stored in one file (or in a database), and formatting in a template is attractive for XML)) - Stan
  • Yes, you can turn off footers, I can do it, but if another person needs to do it ... I would like everything to work without settings from under the boxes)) - Stan
  • HA! Well, if you already have a convenient system, then why remake it, then ??? In the university, one ingenious teacher constantly taught that it is not necessary to throw away what has already been done, but much more rationally - simply to improve the existing one. Moreover, where have you seen that someone and somewhere have problems with the fact that there is no Excel? In general, in any case, it will be necessary to view the document with the help of something. Even if you have to create your program to view your specific files. - Anton Mukhin
  • Even if you want to redo it again, then I think Word is also a good fit. There, the formatting of the entire text with headers and footers can be set at the stage of creating the document. And everyone will be able to use it. Well, that’s where my ideas ended. Maybe someone else will advise that thread. - Anton Mukhin
  • The Word is good in terms of design, but it doesn’t have XML, and it doesn’t include formulas like in Excel - Stan

Understand the ".doc" format: the standard is all the same. It has already thought out everything that you need, and without bicycles.