I have installed OpenERP 6.1 software and now i want to connect it to a fiscal printer. There are some files I got from the vendor of the fiscal printer which are .dll files. The fiscal printer should communicate through the serial port. As per the vendor these files should be incorporated in the source code of the program one is building. These files are .net files. Is there any way the program should communicate with the fiscal printer without using those .dll files?
Any idea on how to integrate the printer and the program will be highly appreciated.
Depending on what you want to print on that printer, you could try the following:
Write a .NET service that monitors a directory for text files. When a file is written to the directory, print its contents and delete the file. Then make OpenERP write files into that directory when you want to print something.
Use some interop tools to communicate directly from Python to .NET. I haven't used it, but Python for .NET sounds promising. You could also try some COM interop and write a wrapper for those libraries that exposes them via COM.
Figure out what the actual interface is for the printer, and write to the serial port from Python.
Configure the printer as a regular Windows printer, and then print the regular PDFs that OpenERP generates for reports. I'm not sure whether that's possible with your printer.
Related
I'm trying to play audio files in Visual BASIC programs. It needs to add windows media player tool to play mp3 files. It adds two dll files with the application but I want to built a single executable file. I've already tried:
My.Computer.Audio.Play(path)
But it requires a .wav file which is very large in size. Is there any way to play mp3 files in a Visual BASIC program?
The .NET framework doesn not support MP3 files natively (so far). Therefore you will have to reply on a third-party framework to help. And unless you get access to the source code of this framework, you will have the incorporate it using (most likely) DLLs and won't be able generate a single .exe file.
If you are willing to switch to C++, some like this could help: http://www.codeproject.com/Articles/1191/A-very-simple-MP-Player
I created a program in vb.net in vb language. After that I created an installer (.msi) for the same in Advanced Installer program. I installed it on the computer and everything seems professional.
I copied the folder that contains the program and all its dependees and sent to to a different computer. I was surprised that the application (.exe) file works without installation!!
How can I make my application works only with installation?
Appreciate the help.
Advanced Installer has a licensing module that works for VB.NET apps too, which you can easily integrate into your installer.
However, this is in the Enterprise edition, and I assume you are using the free edition, as this sounds like quite a simple application/installer.
In this case you can try looking for an alternative OSS solution for a licensing/trial library.
Basically with this library every user that needs to use the software will need a key to activate it, so even if they copy the folder with the application files from Programs Folder, they will still not be able to run your app.
Windows allows us to print specific PDF files manually from the printing options. I only need a PDF reader (which can be free) to open the file, then print it by entering specific page numbers. However I couldn't find doing this process programmatically without using any third party licensed PDF program or library.
I am looking way to do this using MS VBA 2003. Is it possible?
I did what I aimed by using an COM exposed C# application.
The PDF printing library was easy to find as a C# .NET project, therefore I produced my own .dll file by creating a .NET C# Class library project. In this application, I used the library called PdfSharp which is opensource. I wrote my code in order to expose it to COM.
After I registered my produced .dll and created a .tlb file, I referenced this .tlb file to my Access Visual Basic editor. Voila! it worked perfect.
I have made a media player using VB.net but if does not support some ile formats such as mkv,rmvb etc.
Is it possible to embed a mkv file dll in a vb.net program to run the media file?
Is it possible to embed a mkv file dll in a vb.net program to run the
media file?
Yes it is possible if the dll is designed to interface with .net.
I would suggest looking at the VLC Api for .net. VLC runs most video formats.
have been working and wearing out my fingers doing google searches with this one:
I generally develop on server side, but we require small desktop apps to connect certain hardware pieces with our web based software -- I put something together with very limited knowledge of VB.Net no issues there. I don't know much about making installers, messing with the registry or signing programs to make antivirus software not flag my executables as unsafe.
My main woe is that I have a DLL file I used for my installation which I don't know how to register during the installation process. I am using VB.Net Express 2010 for the actual application code and InnoIDE to compile an installation script with those files.
Is there a script I can add to InnoIDE so it will register the DLL file for me? Or is this something I can do programmatically from VB.Net (Express version, not full...). The DLL is a COM library, so according to the research I did it requires registering.
As an aside, any information anyone could provide in terms of signing the application or something which will stop antivirus software from warning users that this file could be potentially unsafe? We use Avast in the office and in all test machines Avast tried to have the app run in the sandbox every time I ran it.
Thank you in advance, and please let me know if this question requires further information.
Since InnoIDE is just a graphical interface to Inno Setup you could try using the Pascal Scripting function RegisterServer.
From above link
Registers the DLL/OCX with the specified filename. If Is64Bit is True,
the DLL/OCX will be loaded as a 64-bit image and registered in a
64-bit process. If FailCriticalErrors is True, the system will not
display any critical-error-handler message boxes. Raises an exception
if not successful.