Hi,
I'm using VB and Amyuni version 2.5
I'm generating a series of documents and I want some of them in portrait and some in landscape. I'm finding that ALL of the documents I generate are the same orientation as the first one, in other words I can make them ALL portrait or landscape. If I use the cdi.Orientation to change the orientation after a document has been generated the new setting is not honored.
Can you tell me how to change orientation on the fly. I have considered destroying and recreating the printer object itself but the performance rammifications are a problem
Thanks for your help.
Michael
Orientation switching on the fly
Hi,
Thanks for your response. I found and tried that. Here is the code I'm using to switch orientation:
Public Sub SetLandscape(blnLandscape As Boolean)
' Set landscape according to the param boolean.
If blnLandscape Then
m_cdi.Orientation = 2
m_cdi.SetDefaultConfig
Else
m_cdi.Orientation = 1
m_cdi.SetDefaultConfig
End If
End Sub
m_cdi is a pointer to the cdi object. I have also tried setDefaultConfigEx, but that didn't work either.
Thanks for your response. I found and tried that. Here is the code I'm using to switch orientation:
Public Sub SetLandscape(blnLandscape As Boolean)
' Set landscape according to the param boolean.
If blnLandscape Then
m_cdi.Orientation = 2
m_cdi.SetDefaultConfig
Else
m_cdi.Orientation = 1
m_cdi.SetDefaultConfig
End If
End Sub
m_cdi is a pointer to the cdi object. I have also tried setDefaultConfigEx, but that didn't work either.
Any further help?
Do you have any further thoughts? I still can't switch orientation once a pdfprinter has been initialized.
When I tried reinstalling the printer object between print jobs I found that the uninstall was deleting the generated PDF files, but not the references to them.
When I tried reinstalling the printer object between print jobs I found that the uninstall was deleting the generated PDF files, but not the references to them.
printing app
Our printing application is MS internet explorer. I'll look into updating it so that it knows that we've switched to landscape.
Thanks for the suggestion.
Thanks for the suggestion.