Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have to generate COBOL code with C# but I haven't got suitable ideas how I could tackle this problem.
The only idea which I have was to generate the COBOL code as plain text but I think this isn't really efficient.
Are there any other/better ways? Could anyone provide an approach for me?
I would be also glad to hear about the smallest tips.
For your information: The data, which I need for the COBOL code I get from a PDF file. Unfortunately I am not able to use Cobol.NET.
The main goal is that a user is able to open a PDF file in the C# program. This PDF file is an empty form where the user have to place several kind of data on it. After editing this form the user must press a button 'run'. The 'run'-button trigger an event which translate the data into COBOL code. Now the COBOL code should contain the data types, values and coordinates of the used fields (data). The coordinates identify the place where the fields should printed on the formular.
If you're using Visual Studio I'd suggest looking into T4 Templates. They allow you to specify the format of your output as it will appear and write C# to manipulate that output.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have an application i have designed and built in C# that uses some complex filtering. i have manually calculated filter values/parameters outside of my application and added them in. this method works temporarily, but ideally i want to generate my values inside my application. The values i generate come from C++. so my thought process is to create a standalone C++ application that i run from my C# application and generate the new values and save them into some .txt file that will automatically add the new filter in. is there a better way to do this without converting this code into C#?
Off the top of my head, here's a few ideas:
Like you suggested, you could save the values to a text file, and then read them in.
You could make the C++ program into a server, and connect the C# program to the C++ program over a TCP connection.
You could use a database like SQL Server to store the values.
I'm sure there's other ways to do it, but those are what came to mind.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We have a c# application wich is used by user to do stuff ;-)
What I want is to add at the startpage of the application some news or information like "hey, there is a new update for the application" or "did you know this feature..." Basically I want something similar like the startpage in Visual Studio.
The news should remain when there is no internet connection and update when there are new entires.
What's the best way to do this?
Thanks
Let your application read some data from file located in the server (XML is good idea), Also you must save the current version of your app in some file (or some where).
So after comparing between the two values you can decide what to show in your news bar.
To show some news you can just read it from another XML file in the server, Then organized it like you want.
here is good ways to read XML from server Read an XML file from http address
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a c# file as in .txt file format, I have to read it dynamically and extract all data available, I need a parser to idenitify
c# class instances,
C# class fields,
etc..
Can anyone have idea to do this in simple way ?
If your C# file is an actual, valid C# file, you could wrap it in a project inside a solution (very simple, one file project), and then compile it. From the EXE file that got generated, you could use reflection to extract types, fields and methods dynamically during runtime.
Another option is to write a basic text parser that recognizes C# keywords and understands what that metadata is, but I think that the first alternative is easier and faster to implement.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have created WCF Service. I have want to provide functionality to create Order Report and PDF of that Order Report.
Currently I have details of Order(OrderID, CustomerName, Product details etc). I want to create Report on the base of the order details and create PDF. I want to return that PDF in bytes to user who call the service.
So flow will be like this
1- User will provide Order details
2- Service function will create Report and PDF of it
3- Pass the PDF in bytes as return.
For step-2, I can use any open source tool which support in VS 2013.
Can anybody suggest me steps or give me hint to start work on this?
We are using iTextSharp library in many projects.
Write a small prototype and try to include every case you have: e.g. horizontal lines across your document.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I was wondering if anyone knew how I should approach converting a pdf to bmp in C#. I wanted to do this without external libraries as sort of a longer learning experience.
I'm just stuck as to how to approach this without using other libraries I don't want.
If anyone has any open source examples I could look at to get an idea of how I should start it that would be much appreciated!
Thanks
Well, obviously you would start with the PDF Reference:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf
Then you could try to find an open source PDF renderer and try to understand how they go about rendering stuff.
However I think you underestimate greatly how huge a task you set yourself. Even just extracting some stuff from a PDF and manipulating existing PDFs is very complex. Large companies put huge effort in it and still their libraries do not match with PDF rendering via Acrobat.