swapan wrote:Can I accomplish the job using Report Writer?
I've used this kind of code:
DEFINE REPORT Report1
* Report Layout ***********************************************
BEGIN LAYOUT
PAPERSIZE PRINTER_PAPER_A4
ORIENTATION PRINTER_ORIENT_PORTRAIT
END LAYOUT
* Header Band *************************************************
BEGIN HEADER
BANDHEIGHT 25
Its generating 2 labels in 1 A4 sized sheet, but no. of copies option is disabled, how can I initialize this value and the user can put values for No. of copies??
For Dot Matrix Printer (local) its coming, but for others (network printers) which are deskjets - no. of copies is disabled.... Not sure if the network printers at my office are right now offline or not....
Number of copies will be enabled only when the printer driver supports it, so it depends upon the printer you are using.
Hello Roberto,
I've solve this problem by changing of the following C-function:
Again, I'm afraid that this is an answer for a different question from the one posted here by swapan.
As swapan indicated the problem is "the no. of copies option is in disabled state in Print Preview"
This is not related in any way with Windows standard print dialog (the code submitted by you).
Then, I still sustaining my original answer: The number of copies is disabled in print preview when the printer driver does not support such feature.
The bottom line is that your code is not related with swapan question in any way .
...and... and..
The number of copies spinner in print preview window is enabled or not depending on the capabilities of the current printer driver about that.
Please, take a look at 'h_controlmisc.prg' (about line 4878), 'i_print.ch' (about line 77) and c_controlmisc.c (_HMG_PRINTER_SETPRINTERPROPERTIES function).
Again, I'm afraid that this is an answer for a different question from the one posted here by swapan.
As swapan indicated the problem is "the no. of copies option is in disabled state in Print Preview"
This is not related in any way with Windows standard print dialog (the code submitted by you).
Then, I still sustaining my original answer: The number of copies is disabled in print preview when the printer driver does not support such feature.
The bottom line is that your code is not related with swapan question in any way .
Thanks Gfilatov for going deep into the issue...............
As pointed out by Roberto Sir, my actual issue is "The No. Of Copies" option is coming in disabled state with a pre-defined value of 1 in it. There's hell of other works right now consuming my time, so unable to test it on other printers. I tested it on a HP deskjet printer and found that issue. But Roberto Sir, the no. of copies option for that printer is active for ms-word/excel applications, then why it wiill be not active for my print preview?