Creating reports and dashboards | Stimulsoft community forum
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
Then can you tell us how we can set our default to print a report on a custom paper size which is 21.59 width x 13.97 height?
See the picture below
We would really appreciate if there's a sample report you can provide that we can download and try on our side.
We are trying to print from a Dot Matrix Printer Epson LQ300+II, it seems to have the problem you described about changing the orientation by themselves.
You set the custom paper size 21.59 x 13.97.
This custom paper size is equal to standard papes size "Statement" ("Organizer L", "Half Letter", "Memo", "Jepps") with the Landscape orientation.
So please try to set the following properties of the template page in the designer (not in viewer):
Paper Size: "Statement"
Orientation: Landscape
Unfortunately, we do not have this printer model.
But on all the printers available for us the report with such a page size is printed correctly.
We have tried that setting in the designer as you suggested, but the report still came out rotated on 90 degrees.
Now we have users reporting the same problem on Epson 680 as well.
The only way we know to making the report correctly is through the viewer, all we did was reverse the width and height in the viewer before we print and the report came out right.
If the viewer can be manually set to what we want, why can't the same thing be done from the designer?
Since we don't want our user to have to change the setting in the viewer everytime, we need to get the default print setting to work.
How do we get the 'customize' to work the way we want it to?!
We had access to printers: Epson FX-890 and Epson LX-1170 and made some investigations - published document format "Statement" (21.6 * 14).
It seems that Windows has bugs when working with matrix printers.
1) Printing from MS-Word:
- a page with the portrait orientation is printed correctly,
- a page with the landscape orientation is always rotated and printed in the portrait orientation.
2) Printing from our product:
- a page with the portrait orientation is printed correctly,
- a page with the landscape orientation is printed correctly in only one case. You must specify the following:
Paper Size: "Custom"
Width: 21,6
Height: 14
Orientation: Portrait
We have been using that setting in the designer all along. Please refer to the earlier posts and look at our attachments.
We had also called Epson support and they pointed out it's a problem with the software component we are using, not their driver issue.
We had been using Crystal Report to print on LQ-300+II, LQ-570, LQ-690 before we switched to Stimulsoft's product and everything was fine.
Please address this problem as soon as possible.
Unfortunately, we do not have Epson LQ300+II or Epson 680 printer models, and cannot perform tests on them.
We had access to printers Epson FX-890 and Epson LX-1170. We could print pages with 21.6 * 14 size in landscape orientation from out product only by setting the following page parameters in the designer:
Paper Size: "Custom"
Width: 21,6
Height: 14
Orientation: Portrait
In all other parameters the page is rotated. In this case, we do not change any settings in the Viewer, simply print.
When printing from MS-Word, we could not print the page of such a format in landscape orientation, the page is always rotated. Please check this on your printer on whether to can get it.
If it does not work, please ask the Epson support team, how to print the page in the landscape orientation from MS-Word.
Maybe there is a trick for this but we do not know this. It may help to solve the problem.
We have conducted additional investigations.
For proper printing, you must install PaperSize to Custom and Orientation to Portrait.
But in our code there is a method which replaces the custom paper size on the appropriate standard paper size for optimization of the printing speed. So when you specify the exact size, printing was not correct.
In the next prerelease build the new static property StiOptions.Print.FindCustomPaperSizeInStandardPaperSizes will be added. Please set this property to false.
For the your current version, please use the following workaround: set the paper size to 21,6 * 14 instead of 21.59 x 13.97.