Jump to content
Server Maintenance This Week. ×

How can arrange printer setting for report ?


Msaeed

This topic is 1291 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi all,

As per mentioned on title ,I have two report in different layout in my database .I hope find script to solve my issue without change orientation every time manual. I have two type  setting to report print.
 - First report print need landscape.
 - second report print news portrait.

249258669_printersetting.thumb.png.43d0c44f2ac3605b36a69b9d7f65213e.png

Link to comment
Share on other sites

Your script doesn't print.  

How do you determine which report is first or second.
Basically...

-Get the right record.

-Print Setup //with correct parameters

-Print

-Go to other record

-Print Setup //change parameters

-Print.

Something that may help as your solution grows, is you may want to make dedicated separate print scripts, one for each orientation, and one for current records, current found set, for each printer.  Because at some point, you're going to get a new printer, and then you'll have to hunt thru the entire solution looking for all your Print Setup and Print script steps to modify them.

Link to comment
Share on other sites

Thanks for reply but I will explain more my purpose cos your reply different what I need.

First report I will be landscape in visitor list layout:

1841489496_visitorreport.png.54c0855dbf13a5af6e14e7f51d5f1b69.png

Script:

1380341302_scriptvisitorlist.thumb.png.c77096caa828db18a3452e03d3ac78a0.png

Second report for Accident Layout:

700282447_accidentreport.png.08b41edddbd78d1a031d5afc24736636.png

Script :

944193323_printersetting.thumb.png.6891260734cd235d938068f77a503b96.png

 

I hope to be clear  now :)  

 

Edited by Msaeed
Link to comment
Share on other sites

I've found it generally useful to create a single-line script for each Print Setup that I might need -- landscape single, landscape all, portrait single, portrait all, etc. -- and then call those scripts as needed, such as within your If/Else steps. That way you only have to set them up once and never think about it again.

Link to comment
Share on other sites

This topic is 1291 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.