1. Trevor Campbell
  2. Valentina Reports ADK
  3. Суббота, Октябрь 14 2017, 04:13 AM
  4.  Подписаться через 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?
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hi Trevor,
Is this printer installed on Windows?
Комментарий
There are no comments made yet.
Trevor Campbell Ответ принят
Yes it is. On both server and client.
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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?
Комментарий
There are no comments made yet.
Trevor Campbell Ответ принят
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.
Вложения
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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
Вложения
Комментарий
There are no comments made yet.
Trevor Campbell Ответ принят
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?
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hi Trevor,

Almost. I’ll build V4RB plugin with this option.
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Please try this V4RB plugin with new parameter:
https://www.dropbox.com/s/1kjg7303jrf85w9/v4rb_7_win.exe?dl=0
Комментарий
There are no comments made yet.
Trevor Campbell Ответ принят
Thanks. This is working.
Комментарий
There are no comments made yet.
  • Страница :
  • 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. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories