Bug 161314 - printout property not found 423
Summary: printout property not found 423
Status: RESOLVED DUPLICATE of bug 155360
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 04:02 UTC by johnks
Modified: 2024-05-29 15:44 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of error (74.48 KB, image/png)
2024-05-29 04:02 UTC, johnks
Details
zip containing the file (2.66 MB, application/zip)
2024-05-29 15:27 UTC, johnks
Details
sample data for tax paid sheet (38.91 KB, application/pdf)
2024-05-29 15:28 UTC, johnks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnks 2024-05-29 04:02:31 UTC
Description:
ThisWorkbook.PrintOut , Preview:=True

this code is not working in calc

Steps to Reproduce:
1. file containing this code
2. try to run
3.

Actual Results:
423 not found

Expected Results:
it should run


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded
Comment 1 johnks 2024-05-29 04:02:49 UTC
Created attachment 194412 [details]
screenshot of error
Comment 2 Stéphane Guillou (stragu) 2024-05-29 04:58:01 UTC
Reference: https://learn.microsoft.com/en-us/office/vba/api/excel.workbook.printout

I VBA activated in your macro? Can you please provide a sample file?
Comment 3 johnks 2024-05-29 15:27:41 UTC
Created attachment 194425 [details]
zip containing the file

remove the following in order
(search for hyperlink)
ActiveWorkbook.FollowHyperlink Address:="https://eportal.incometax.gov.in/iec/foservices/#/TaxCalc/calculator"

Private Sub ButtonHyperlink()
On Error Resume Next
fmsgbox "After e-payment of Tax, the details of amount paid, Challan No., BSR Code, etc. should be filled in Schedule IT of Income Tax Return before submission of the return to claim the challan"
ActiveWorkbook.FollowHyperlink _
Address:="https://onlineservices.tin.egov-nsdl.com/etaxnew/tdsnontds.jsp"
End Sub
(this is already a listed bug)


Then on prefiljson sheet

goto line 87 and remove
 As Byte()
 
 and 
 goto line 2318 and type
 end function
 
 
 then remove 
 Application.CommandBars("Ply").Enabled = True
 (by finding ply) this is already a listed bug
 
 
 then if you click on "prefil json button", you will get to filters 423 which is already a bug

so remove 
.Filters.add "Json File", "*.json", 1

as well


Set sourceSheet = ThisWorkbook.Sheets("Taxes Paid and Verification")
and
Set a = ThisWorkbook.Sheets("TCS")
this one also shows 423 not found
Comment 4 johnks 2024-05-29 15:28:37 UTC
Created attachment 194426 [details]
sample data for tax paid sheet
Comment 5 johnks 2024-05-29 15:30:20 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> Reference:
> https://learn.microsoft.com/en-us/office/vba/api/excel.workbook.printout
> 
> I VBA activated in your macro? Can you please provide a sample file?

i have attached the zip file containing the macro file. it needs cleanup to make it work with libreoffice.

i have given instructions after which errors come up one after the other so this one file is relevant for many bugs
Comment 6 johnks 2024-05-29 15:31:54 UTC
https://crashreport.libreoffice.org/stats/crash_details/2556249b-eb3e-489a-8c72-cee728b75fbb

https://crashreport.libreoffice.org/stats/crash_details/8d5c4b65-1eb8-477d-b75f-fc393f4fe634

this file has given me multiple crashes so should i start a fresh bug report for the crash or leave crash reports as it is?
Comment 7 johnks 2024-05-29 15:44:55 UTC

*** This bug has been marked as a duplicate of bug 155360 ***