HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by Rathinagiri »

Kindly see this topic.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by esgici »

sudip wrote: So, you may guess what I shall request ;) How can I download that software ?
One of our friends Ciro Vargas Clemow has a useful site for xBase programmers and a free ware DOS printing utility called (nodosimp)

Though this utility talk only Spanish, surely is useful for printing issues.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by sudip »

rathinagiri wrote:Kindly see this topic.
Thanks Rathi :) I guessed about Marek's utility. I tried it before. I faced some problems, but forgot to inform Marek (sorry Marek).

Now I shall retest it!

With best regards.

Sudip
With best regards,
Sudip
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by sudip »

esgici wrote:
sudip wrote: So, you may guess what I shall request ;) How can I download that software ?
One of our friends Ciro Vargas Clemow has a useful site for xBase programmers and a free ware DOS printing utility called (nodosimp)

Though this utility talk only Spanish, surely is useful for printing issues.
Thank you very much. I downloaded it. But, faced problems first time using (most probably due to language). Meanwhile I am trying with Marek's software.

With best regards.

Sudip
With best regards,
Sudip
User avatar
swapan
Posts: 242
Joined: Mon Mar 16, 2009 4:23 am
Location: Kolkata, India
Contact:

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by swapan »

Friends ............

My current issue is I want to print the same report in Dot Matrix Printer as well as in Windows printer. During Dot Matrix Printer the user will change the paper size to German Std Fanfold, otherwise the default papersize of the windows printer.

Can anyone tell me how to add PaperSize input to the Printer dialog invoked through the following command:

mPrinter := GetPrinter()
SELECT PRINTER mPrinter ORIENTATION PRINTER_ORIENT_PORTRAIT PREVIEW

or

SELECT PRINTER mPrinter ORIENTATION PRINTER_ORIENT_LANDSCAPE PAPERSIZE PRINTER_PAPER_FANFOLD_STD_GERMAN PREVIEW

The PrinterDialog during preview doesn't have the option of Papersize. Am I missing any parameter?
Please revert fast as I want to close this issue soon. I know its taking the default Printer's default value for PaperSize - but how a user can change on the fly like in Word, Excel with Page Setup option. This selection by user interference can perhaps solve my problem of printing simultaneously a windows report on Dot Matrix or Windows Printer.

Regards,

--Swapan

[PS:Thanks Sudip for your advice to read the Roberto's html file regarding Printing. I was having problem on DMP, but when I added PAPERSIZE PRINTER_PAPER_FANFOLD_STD_GERMAN PREVIEW to the SELECT PRINTER command it was ok.
Thanks & Regards,
Swapan Das

http://www.swapandas.com/
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by sudip »

Hi Swapan,

Have you downloaded latest documentation by Roberto. If yes then please click on "Print System" tree node in the left side. Here you can get lots of information :)

IMHO, SELECT PRINTER DIALOG [ TO <lSuccessVar> ] [ PREVIEW ] will be helpful in your case.

Thank you very much in my learning process of HMG :)

With best regards.

Sudip
With best regards,
Sudip
User avatar
swapan
Posts: 242
Joined: Mon Mar 16, 2009 4:23 am
Location: Kolkata, India
Contact:

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by swapan »

sudip wrote: IMHO, SELECT PRINTER DIALOG [ TO <lSuccessVar> ] [ PREVIEW ] will be helpful in your case.
Thanks once again Sudip! Its Working!!
Yes when I passed the following command:
lSuccess:=.t.
SELECT PRINTER DIALOG TO lSuccess PREVIEW
Its opens up the Windows' Print Setup Dialog box, and it does contains PaperSize option - which I was looking for. Now this has made me more greedy! :twisted:

Can anyone tell me how to pass or change the default values of this Print Setup dialog box. Like I want to pass paper orientation value (potrait/landscape) as per my report. At present its taking the default values of the Printer. Please help, my report designing depends upon it.

With regards,

Swapan
Thanks & Regards,
Swapan Das

http://www.swapandas.com/
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: HOW TO PRINT A SIMPLE REPORT IN WINDOWS FORMAT

Post by sudip »

Dear Swapan,

Please go through ALL the examples of Printing. (I can't do it yet ;) )

Those examples are Gold Mines :)

Regards.

Sudip
With best regards,
Sudip
Post Reply