1. Trevor Campbell
  2. Valentina Reports ADK
  3. Saturday, October 14 2017, 04:13 AM
  4.  Subscribe via email
I'm trying to setup to print 8 reports to a specific printer with the paper source to a tray that is not set as the default. I can set the printer but I can't seem to be able the set the paper source.

I have tried :

mReport.PrintToLocalPrinter( "HP LaserJet 500 color MFP M570 PCL 6","papersource=Tray1")


But it doesn't seem to work. Does anyone have any suggestions?
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Hi Trevor,
Is this printer installed on Windows?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Trevor Campbell Accepted Answer
Yes it is. On both server and client.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Sergey Pashkov Accepted Answer
Currently, we don't have this option.
Is it possible to set this tray as a default, too?

--
We can try to implement it. But it may be driver specific.
Do you have this option when you print from the Valentina Studio? (now it's not processed, though)
If yes - could you please make a screenshot of the dialog with this option?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Trevor Campbell Accepted Answer
Yes, I could set it as the default, but 95% of the time that's not the default tray. And many computers use the printer.

I have attached the dialogue I get from printing within the report designer. The only bit different is 'source' instead of 'papersource'. The name of the printer is different on my machine where I design the reports.
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
Sergey Pashkov Accepted Answer
I've added this parameter for testing, here you can try to print from the Valentina Studio again:
https://www.dropbox.com/s/tvqvyi0sn0stfre/vstudio_x64_7_win.exe?dl=0

Will it print to correct tray?

In the console of preview you can find parameters passed to PrintTo...Printer method
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
Trevor Campbell Accepted Answer
That worked.:D

I got the following:

'HP 500' with options 'collate=no,color=yes,copies=1,duplex=no,landscape=yes,papersize=9,printquality=600,scaling=100,papersource=259'

So, I think that using papersource=259 is the answer to my question?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 6
Sergey Pashkov Accepted Answer
Hi Trevor,

Almost. I’ll build V4RB plugin with this option.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 7
Sergey Pashkov Accepted Answer
Please try this V4RB plugin with new parameter:
https://www.dropbox.com/s/1kjg7303jrf85w9/v4rb_7_win.exe?dl=0
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 8
Trevor Campbell Accepted Answer
Thanks. This is working.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories