i've a com fully working compiled VB6 (SP6) program.
Now i want to know if it's possibile to include an excel file into the app,without leaving it alone.
let me explain.
that file is used as an invoice and is rich of borders,textbox,lines so i can't open a new one.
i don't want somebody tries to modify it,i prefer to let my colleagues only to press "print" and add the information i need from the app and include it into the app.
do you think it's possible?
i can switch it into a word or pdf file it'd be better.
thank for your attention
I'd have the user create a TEXT FILE, and then have a LOAD and then PRINT button... It'd be easier to code, but you'd have to re-write at least one part
I would think you could include it as a resource though I have never tried. I wonder though why use an excel file at all? For creating an invoice I would use a report that is contained within my exe and print it out. No external file to have to worry about, no need for the user to install Excel on the system and no need to use all those extra resources up when they are not needed for the task at hand.
Personaly I avoid using Excel in any programs I write and deter customers from it as much as possible related to data storage and reporting. I do however add an option into my programs that will create an excel file from any report.
Interesting, I've been using Active Reports since 98 and would hate to use anything else. The fact that the reports become part of your exe and you use real VB code within the report. Basically it becomes like a form in your project with some new properties for datasource, headers, footers details and grouping levels. Reports are a snap and can be exported to Excel or PDF with one line of code.
Hard to imagion having to use anything else at this point.
DataMiser it sound interesting...by the way do you use crystal report or another.
the invoice made in excel at the moment is rich of boxes,border of different types,colours and so on.
i can't create an excel file as new,but i don't know if i can create a report due i don't have a database.
perhaps those are stupid question from your point of view but i'm reading all around to find a solution..
DataMiser it sound interesting...by the way do you use crystal report or another.
the invoice made in excel at the moment is rich of boxes,border of different types,colours and so on.
i can't create an excel file as new,but i don't know if i can create a report due i don't have a database.
perhaps those are stupid question from your point of view but i'm reading all around to find a solution..
I use Active Reports [ I hate to use Crystal Reports ] Naturally you can use a database with active reports but it is not limited to this. You can assign anything on the report through code at runtime. You can write code just like it were a form in your project. Report.Label1.Caption="MyLabel" for example.
It supports DAO, RDO and ADO in the version I use. Basically if you can create an odbc datasource you can bind it to the report engine in design mode and of course can change the source at anytime during runtime as well as being able to just populate the fields through striaght VB code.
The new version supports the latest .net environments as well and the pro version allows you to include a WISISWYG report editor in your program for distribution. Both pro and standard also give a report viewer control that is web enabled so you can display the same reports online as well as export filters for Excel, PDF and others.
Unfortunately this report tool is only for the serious as it carries a hefty price tag but IMO it is worth every penny and more.
i posted a pdf of what we use at the moment.
basically i should use crystal report for what i'm doing (i'm creating this app ,to semplify my job, i can't buy a program) i didn't know i can create a report without a db.
i only import an excel file with some information (name,id,pnr code,etc.) and print it by adding a variant to a form..
VB 6 has it's own build in report tool that is not bad, I've never really used it other than to clean up code that others have written but from what I saw of it looks like it would do the job.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.