-
-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page Format Issue #1800
Comments
Maybe Windows can't detect the paper size from the width and length with dmPaperSize = 0. See: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-devmodew |
But after exporting same data to pdf and then print it worked. can you tell me what should i do to overwrite default page format ? |
I guess write a list of if statements to check the width and height to define the paper size. Modes are defined here: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-devmodea |
Actually i'm using pre-defined format only and i don't have any idea where should i write those conditions. i'm clueless. |
In the cpp code for Windows. |
okay will checkout. thanks for your time. |
Hey below code works well if you can put in next update it will big help to those who facing that problem :)
Above code is i put in cpp file and below code you can see i called that function
|
One More Problem i found is margin is getting overwrite by default margin in cpp
i'm passing the margins
how to handle this ? |
Describe the bug
Problem is when passing page format to a5 or a6 to direct printer it sets to a4 page to print.
when try to direct print it take a4 format only not other format.
After export and open pdf then try to print it automatically set page format which we pass inside 'format'
To Reproduce
Code snippet to reproduce the behavior:
Expected behavior
Screenshots
Flutter Doctor
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: