[FREE] Create PDF file Extension. Layout to PDF

I think im lost. See attached here my code for the creation of the pdf. (pdf should be created from the content of screen2), but all solutions i have tried does not work.

See attached the .aia file as well. (the ui is not populated currently) when the app starts up, swipe from left. click on payroll information twice (i.e. swipe again and press). a list, currently only my name will come up. if you select the name, a new screen opens and it will populate the fields from a spreadsheet. Now after the fields have been populated, this where i want to press pdf and it must save a copy to the phone.

Can you or someone please help with what i must do to get this part to work. in order for me to move to the next phase of the project.

image

NavigationDrawer.aia (138.1 KB)

1 Like

It looks like you are not using AppInventor but one of its clones. You should ask in the community for the clone you are using

1 Like

Ill replicate my app in app inventor and if the problem persist then ill revert.

1 Like

Why don't you ask in the Niotron community (where the project was created)?

1 Like

Ill do it now

1 Like

ok Please help. still an issue to save the pdf file to storage. write permissions not granted and also height and widt must be positive. if i change it to a positive pixel value it still gives the same feedback. can someone please assist.

image

NavigationDrawer.aia (136.2 KB)

1 Like

Instead of Shared try Legacy

1 Like

Thanks, but did it, changed the filescope to legacy, but i still get the same error. Error908: write-external-storage not granted. i thought the filescope would circumvent it.

grafik

1 Like

Yes have done that on both screens as well. Any other ideas?

1 Like

You can ONLY do this on Screen1.

Ok. does that entail that ill only be able to the pdf extension on screen1 each time

No, what about trying ...

Im trying. If the file is set on screen 1 to legacy and no settings changed on screen 2 it does the same. Im reqding up and attempting all possible solutions.

1 Like

DefaultFileScope is essentially responsible for which storage permissions are declared in the Manifest. Only if it is set to Legacy, WRITE permission is declared in the Manifest.

I have already mentioned / discussed this issue countless times. Search the forum ...

1 Like

@Ellik_Swart my guess is, you are talking about the file scope of the file component...
however what @Anke is talking about is the default file scope, which can be found in the properties of Screen1

Taifun

1 Like

I have specially posted a screenshot so that there are no misunderstandings.

1 Like

thank you all for the above. now I'm going to go forward and send the generated file to google drive.

1 Like

Hi everyone.
I have this problem with this extension.
The extension prints the screen layout, in this way the printout is different for each device.
If the printing is performed on a table it will be different than the printing of a common device.
How can I do?

ref [mod edit]

1 Like

Have you used the Density block to adapt it to the screen?

1 Like