PrintFile for text files
Moderator: Rathinagiri
Re: PrintFile for text files
Hi Pablo
1. It was dumb of me to not realise I had to excute printfile command at command prompt so did not know how to use it.
2. The demo4.exe asks for EMF file, sorry I don't know what EMF files are ?
3. The screenshot which appears on this thread is different from that produced by demo4.exe.
4. I tried to run printfile.exe at dos prompt by giving command "printfile test1.txt" where test1.txt is a text file, but I got error msg file not found eventhough file is there.
5. I tried to run printfile.exe at dos prompt by giving command "printfile test.txt /PREVIEW" where test.txt is a text file, but I got runtime error msg Error BASE/1303 Argument error:_HB_LANGSELECT ... Called from PRINTGRAPHIC(524)
Pls advice if I am doing something wrong in using the program.
Thanks
1. It was dumb of me to not realise I had to excute printfile command at command prompt so did not know how to use it.
2. The demo4.exe asks for EMF file, sorry I don't know what EMF files are ?
3. The screenshot which appears on this thread is different from that produced by demo4.exe.
4. I tried to run printfile.exe at dos prompt by giving command "printfile test1.txt" where test1.txt is a text file, but I got error msg file not found eventhough file is there.
5. I tried to run printfile.exe at dos prompt by giving command "printfile test.txt /PREVIEW" where test.txt is a text file, but I got runtime error msg Error BASE/1303 Argument error:_HB_LANGSELECT ... Called from PRINTGRAPHIC(524)
Pls advice if I am doing something wrong in using the program.
Thanks
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: PrintFile for text files
EMF is Enhanced Meta File, the intermediate file used by windows for printer page files.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
PrintFile for text files
Ohhh my gosh... Let go by parts, said Jack the stripper...
Coincidentally I had another application with a similar name that was stored in the same folder as this one. That's how I went wrong and I ended up posting Demo. If you want to know about Demo4, check out this topic that I have been releasing for a long time: viewtopic.php?p=37167#p37167 (this ios for metafiles printing as Rathi already said)
If you make download again you will see there is the right project PrintFile with all its sources files.
Unless you have typed the wrong text file name (the file can be any extension: PRN, TXT but needs to be a text file type) or the file is in another folder. And because is not found, because not full path was mentioned and the the app see for the current folder where the PrintFile.exe is stored. This is a convention of ALL app works like that.
You can enter the full path of the folder and the name of the file you are going to print.
For example, type PRINTFILE.EXE on the command line:
PrintFile "C:\My folder\Test.txt"
Please note in above, the first parameter is quoted because it is supposed to be an Text.txt file in the folder with name My folder. I said supposed to be the Test.txt as file name example.
Also note that you are mentioning to had typed: "printfile test1.txt" (this is not the correct way to use the quotes). Quotes you put at names of files or names of paths when it have empty spaces int its names.
And post the screen captured to see it, please.
Ok, I understood. You never had imagined this application is used with parameters. Mostly used in prompt command or in Clipper, Harbour by executing and passing the due parameters.1. It was dumb of me to not realise I had to excute printfile command at command prompt so did not know how to use it.
At begining when I have created this topic, you and another coleagues have downloaded. But the files attached was wrong. It was my mistake to attach other application.2. The demo4.exe asks for EMF file, sorry I don't know what EMF files are ?
Coincidentally I had another application with a similar name that was stored in the same folder as this one. That's how I went wrong and I ended up posting Demo. If you want to know about Demo4, check out this topic that I have been releasing for a long time: viewtopic.php?p=37167#p37167 (this ios for metafiles printing as Rathi already said)
As I explained earlier, this Demo4 was not meant to be published in this topic. Sorry for the confusion I caused.3. The screenshot which appears on this thread is different from that produced by demo4.exe.
If you make download again you will see there is the right project PrintFile with all its sources files.
It can not be possible.4. I tried to run printfile.exe at dos prompt by giving command "printfile test1.txt" where test1.txt is a text file, but I got error msg file not found eventhough file is there.
Unless you have typed the wrong text file name (the file can be any extension: PRN, TXT but needs to be a text file type) or the file is in another folder. And because is not found, because not full path was mentioned and the the app see for the current folder where the PrintFile.exe is stored. This is a convention of ALL app works like that.
You can enter the full path of the folder and the name of the file you are going to print.
For example, type PRINTFILE.EXE on the command line:
PrintFile "C:\My folder\Test.txt"
Please note in above, the first parameter is quoted because it is supposed to be an Text.txt file in the folder with name My folder. I said supposed to be the Test.txt as file name example.
Also note that you are mentioning to had typed: "printfile test1.txt" (this is not the correct way to use the quotes). Quotes you put at names of files or names of paths when it have empty spaces int its names.
Ops... this could it be an error of identification language. Please would you be so kind to run this attached app:5. I tried to run printfile.exe at dos prompt by giving command "printfile test.txt /PREVIEW" where test.txt is a text file, but I got runtime error msg Error BASE/1303 Argument error:_HB_LANGSELECT ... Called from PRINTGRAPHIC(524)
And post the screen captured to see it, please.
Last edited by Pablo César on Mon Feb 27, 2017 3:15 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: PrintFile for text files
"Printfile" command isn't only way:RPC wrote: ↑Sun Feb 26, 2017 3:43 pm Hi Pablo
1. It was dumb of me to not realise I had to excute printfile command at command prompt so did not know how to use it.
2. The demo4.exe asks for EMF file, sorry I don't know what EMF files are ?
3. The screenshot which appears on this thread is different from that produced by demo4.exe.
4. I tried to run printfile.exe at dos prompt by giving command "printfile test1.txt" where test1.txt is a text file, but I got error msg file not found eventhough file is there.
5. I tried to run printfile.exe at dos prompt by giving command "printfile test.txt /PREVIEW" where test.txt is a text file, but I got runtime error msg Error BASE/1303 Argument error:_HB_LANGSELECT ... Called from PRINTGRAPHIC(524)
Pls advice if I am doing something wrong in using the program.
Thanks
https://vivaclipper.wordpress.com/2013/ ... nsole-way/
Happy HMG'ing ,
Viva INTERNATIONAL HMG
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
PrintFile for text files
And so what ?esgici wrote: ↑Mon Feb 27, 2017 1:34 pm"Printfile" command isn't only way:RPC wrote: ↑Sun Feb 26, 2017 3:43 pm Hi Pablo
1. It was dumb of me to not realise I had to excute printfile command at command prompt so did not know how to use it.
2. The demo4.exe asks for EMF file, sorry I don't know what EMF files are ?
3. The screenshot which appears on this thread is different from that produced by demo4.exe.
4. I tried to run printfile.exe at dos prompt by giving command "printfile test1.txt" where test1.txt is a text file, but I got error msg file not found eventhough file is there.
5. I tried to run printfile.exe at dos prompt by giving command "printfile test.txt /PREVIEW" where test.txt is a text file, but I got runtime error msg Error BASE/1303 Argument error:_HB_LANGSELECT ... Called from PRINTGRAPHIC(524)
Pls advice if I am doing something wrong in using the program.
Thanks
I do not understand you. Why to make RPC quoting ?
My application is putting together several ways of printing and the user can choose between the 3 main ways (RAW, TEXT and GRAPHICAL) how to use it and the application quite does it automatically.
Giving priority to the matrix for economy when is not forced to graphical way of course.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: PrintFile for text files
Thanks esgici
I have already gone through print commands at your website.
I have already gone through print commands at your website.
Re: PrintFile for text files
Hi Pablo
1. I must first apologize for point no 4. It was my mistake, there was a space in file name and that' s why I was getting file not found error. It is resolved now.
2. I get following on running demo5 Thanks
1. I must first apologize for point no 4. It was my mistake, there was a space in file name and that' s why I was getting file not found error. It is resolved now.
2. I get following on running demo5 Thanks
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
PrintFile for text files
Thank you Rajeev for your return.
About your test at #4, there is no problem.
I appreciate your interest and persistence.
Thanks to this I understand that we can not always automate the language issue.
It may be best left to the discretion of the user and not be automated.
I also found the bug in the lack of language identification, which I will implement but as I said, I will first leave it to the user's selection.
The client is always the boss, is not doesn't it ?
Then I will have to write the .INI language file and make another option so user can modify the selection.
Thanks again, without your feedback, the application and function languages would be incomplete.
I will make new release.
About your test at #4, there is no problem.
I appreciate your interest and persistence.
Thanks to this I understand that we can not always automate the language issue.
It may be best left to the discretion of the user and not be automated.
I also found the bug in the lack of language identification, which I will implement but as I said, I will first leave it to the user's selection.
The client is always the boss, is not doesn't it ?
Then I will have to write the .INI language file and make another option so user can modify the selection.
Thanks again, without your feedback, the application and function languages would be incomplete.
I will make new release.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Re: PrintFile for text files
ChangeLog:
Hope you like it.
- Fixed auto-detection language. User language identifier and recomposed constants.
- Automatizing translation file thru Google Translate.
- It's not be implemented user selection language.
- OnSizing function at ActiveX.
Hope you like it.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: PrintFile for text files
Hi Pablo
Many thanks for updated Printfile program. I will check it.
Viewerror doesn't produce any error as such but the small window at start of compiling just disappears and nothing happens.
Even the programs which compiled without viewerror don't compile. I had to delete registry key so that I could use IDE to compile programs.
Many thanks for updated Printfile program. I will check it.
Viewerror doesn't produce any error as such but the small window at start of compiling just disappears and nothing happens.
Even the programs which compiled without viewerror don't compile. I had to delete registry key so that I could use IDE to compile programs.