-
Notifications
You must be signed in to change notification settings - Fork 4
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
Printer Dialog #5
Comments
Thanks for reporting the issue, unfortunately the code does not seem to work either way, on my machine now. Not in VB6 and not in excel vba7. What windows-version do you have? |
Of course your suggestion is 100% correct. There never was a compiler constant, called "VBA". For VBA-users before "VBA7" (before 2007) there was the compiler constant "VBA6". But I do not know if the hInstancPtr-property did already exist, back then. |
You're right, there wasn't a hInstancePtr property - I believe that was introduced with 64bit Office. 64bit Office still has the hInstance property, but it doesn't return a value. I thought VBA6 might be the correct compiler constant, but wasn't sure. I did adjust the code above, and meant to post it with the image, but it slipped my mind, I'm sorry:
|
@KallunWillock, in the meanwhile please consider starring the repo |
I'm sorry, I genuinely thought I had. It turns out I had accidenrally starred one of your other repos. :-) |
many thanks, starring doesn't hurt :-) |
Oh I don't know. What do you mean exactly? The screen capture of the print
dialogue above? Whatever the case, knowing me, there won't be a
particularly intelligent reason behind whatever it is I've done!
…On Tue, 24 Sep 2024, 7:03 pm OlimilO1402, ***@***.***> wrote:
many thanks, starring doesn't hurt :-)
btw why is your dialog in excel "themed"?
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF6BQMZQKCAO5HZQ44OXFPLZYGSQFAVCNFSM6AAAAABOUY6Y3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRHE2TSMRTHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
yeah your screen capture, I am not sure, maybe it is because you have latest Office on Win 11. |
It may be the case that this is a known issue, but
PrinterDlg.XLSM
does not appear to work as-is for VBA 64-bit.It seems to me that the issue arises from using the hInstance property for the Application object in the App_hInstance function. Excel 64-bit, example, has the hInstancePtr property, and using that instead gets the code working (as below). I have had to change the VBA complier constant to VBA7, and I don't think that 32-bit will make sense of the app variable, so that would need to be addressed too.
The text was updated successfully, but these errors were encountered: