Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. ie5 browser ocx Properties

ie5 browser ocx Properties

Scheduled Pinned Locked Moved Visual Basic
c++tutorialhtmlcomquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hubbard
    wrote on last edited by
    #1

    Setting Document/Printer Properties with ie5 browser ocx or with html I want to print html forms in differen sizes, orintation with the browser control. I tried three approaches: 1. size and orientation in the .html file example: @page { size:21.0cm 14.5cm;landscape } but this needs CSS2 support which the internet explorer does not -or is there another way? 2. application driven at the moment i have a small VB sample application that works quit well WebBrowser.Navigate (AnyUrl) Private Sub WebBrowser_DocumentComplete(ByVal pDisp As Object, URL As Variant) WebBrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER End Sub except for the fact, that i have to configure the printer manually OLECMDEXECOPT_PROMPTUSER shows the printer dialog but i would rather use OLECMDEXECOPT_DONTPROMPTUSER and apply the settings programatically -can i change the settings with VB or do i have to do this in C++ using COM? -does anyone hav an example. -i am a C++ programmer with some basic knowledge of MFC. -but i dont know how to handle IPrint::Print with DEVMODE 3. default printer settings i also tried to change the printer properties (start/settings/printers) but the browser just does not use them. may be there is somewhere a template i could use internet explorer/ properties / general (tab) / accessibility (button) / user style sheet -how must a stylesheet look? -would it work like this? or are these stylesheets only for display? --------------------------------------------------------------------------------------------------------------------------------------------- Yours Sincerely // Mit freundlichen GrĂ¼ssen Theo Portmann _____________________________________________ Atraxis AG CEPM CH-8058 Zurich-Airport Phone: +41 1 812 28 63 Telefax: +41 1 812 90 31 Telex: ZRHQGSR E-mail: theo.portmann@atraxis.com Greetings Theo

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups