Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel C# programming question Pin
Corinna John24-Nov-03 21:04
Corinna John24-Nov-03 21:04 
GeneralRe: Excel C# programming question Pin
pankajdaga25-Nov-03 4:29
pankajdaga25-Nov-03 4:29 
GeneralRe: Excel C# programming question Pin
pankajdaga25-Nov-03 9:00
pankajdaga25-Nov-03 9:00 
GeneralWindows Forms - Control Focus Pin
AJ12324-Nov-03 8:47
AJ12324-Nov-03 8:47 
GeneralRe: Windows Forms - Control Focus Pin
Heath Stewart24-Nov-03 8:52
protectorHeath Stewart24-Nov-03 8:52 
GeneralWeb browser control & printing Pin
Alex Korchemniy24-Nov-03 6:43
Alex Korchemniy24-Nov-03 6:43 
GeneralRe: Web browser control & printing Pin
Heath Stewart24-Nov-03 7:50
protectorHeath Stewart24-Nov-03 7:50 
GeneralRe: Web browser control & printing Pin
Alex Korchemniy24-Nov-03 8:20
Alex Korchemniy24-Nov-03 8:20 
Well I looked and the pvaIn doesn't look too promising:

****
VARIANT of type VT_BSTR, VT_I2, or VT_ARRAY.

If pvaIn is a VARIANT of type VT_BSTR, pvaIn specifies the path to a custom print template.

If pvaIn is a VARIANT of type VT_I2, pvaIn can be set with the flags PRINT_DONTBOTHERUSER(0x01) and PRINT_WAITFORCOMPLETION(0x02) defined in mshtmhst.h. If 0 is specified, then the default behavior (show print dialog and do not wait for completion) occurs unless otherwise defined by the nCmdExecOpt parameter.

If pvaIn is a VARIANT of type VT_ARRAY, pvaIn specifies a SAFEARRAY containing (in the following order) a header BSTR, a footer BSTR, the address of an IStream pointer for a Microsoft® Outlook® Express header document, an alternate URL BSTR used for MSHTML in Outlook Express, and a DWORD containing flags.

Can be set to NULL to use the Microsoft Internet Explorer default print template.
****

It doesn't look like you can access the page margins, etc. from here. I was hoping maybe there was another object that you could get to. Looking through the sutff it doesn't look too flexible to me. There is something with printing templates in there, but in my case i can't you printing templates I need the application to specify the settings at runtime. (The settings have to be serialized to a db.)
GeneralRe: Web browser control & printing Pin
Heath Stewart24-Nov-03 8:48
protectorHeath Stewart24-Nov-03 8:48 
GeneralRe: Web browser control & printing Pin
Alex Korchemniy24-Nov-03 9:15
Alex Korchemniy24-Nov-03 9:15 
GeneralRe: Web browser control & printing Pin
Heath Stewart24-Nov-03 9:51
protectorHeath Stewart24-Nov-03 9:51 
GeneralRe: Web browser control & printing Pin
Alex Korchemniy24-Nov-03 10:59
Alex Korchemniy24-Nov-03 10:59 
GeneralExtending System.Collections.Hashtable Pin
Thomas Gondorf24-Nov-03 5:27
Thomas Gondorf24-Nov-03 5:27 
GeneralRe: Extending System.Collections.Hashtable Pin
jparsons24-Nov-03 6:00
jparsons24-Nov-03 6:00 
GeneralRe: Extending System.Collections.Hashtable Pin
Heath Stewart24-Nov-03 7:07
protectorHeath Stewart24-Nov-03 7:07 
GeneralRe: Extending System.Collections.Hashtable Pin
jparsons24-Nov-03 12:20
jparsons24-Nov-03 12:20 
GeneralRe: Extending System.Collections.Hashtable Pin
Heath Stewart24-Nov-03 15:52
protectorHeath Stewart24-Nov-03 15:52 
GeneralRe: Extending System.Collections.Hashtable Pin
Thomas Gondorf24-Nov-03 21:51
Thomas Gondorf24-Nov-03 21:51 
GeneralInterface? Abstract? DLL? Component? please help Pin
sammyh24-Nov-03 5:23
sammyh24-Nov-03 5:23 
GeneralRe: Interface? Abstract? DLL? Component? please help Pin
Heath Stewart24-Nov-03 7:25
protectorHeath Stewart24-Nov-03 7:25 
Generalwww.itbooksearch.com.Huge IT ebook resources,You need not amazon any more. Each $4. Pin
Anonymous24-Nov-03 2:04
Anonymous24-Nov-03 2:04 
Generaldrag & drop image from IE Pin
trythat24-Nov-03 1:48
trythat24-Nov-03 1:48 
GeneralRe: drag & drop image from IE Pin
Heath Stewart24-Nov-03 4:47
protectorHeath Stewart24-Nov-03 4:47 
GeneralRe: drag & drop image from IE Pin
trythat24-Nov-03 6:47
trythat24-Nov-03 6:47 
GeneralUsing custom controls in Windows Forms Pin
Radoslav Bielik24-Nov-03 0:20
Radoslav Bielik24-Nov-03 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.