{"id":74,"date":"2020-06-07T16:38:20","date_gmt":"2020-06-07T16:38:20","guid":{"rendered":"http:\/\/www.technicaladept.com\/?p=74"},"modified":"2025-04-26T17:49:23","modified_gmt":"2025-04-26T17:49:23","slug":"two-visual-basic-printing-problems-with-redirected-printers","status":"publish","type":"post","link":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/","title":{"rendered":"Two Visual Basic Printing Problems With Redirected Printers"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Background<\/h2>\n\n\n\n<p>Applications written in  Visual Basic 6, print using a standard printer object included with Visual Basic. This object includes methods to access a list of available printers or the default printer. The information that these Visual Basic methods access, ultimately comes from registry keys in the users\u2019 registry hives. It is the duty of the Windows operating system to look after these registry keys. However Visual Basic 6 and other legacy applications that use this older source of information, have fallen out of support. This means that later versions of the Windows operating system have paid less attention to maintaining backwards compatibility.  Windows provides information via these registry keys which might not match what  Windows Settings or the Control Panel is showing.  When we use &#8220;redirected printers&#8221; in particular, we can see a variety of Visual Basic printing problems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Visual Basic Printer List<\/h2>\n\n\n\n<p>These legacy Visual Basic applications obtain the list of available printers from the &#8220;Devices&#8221; registry key at:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Devices<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"940\" height=\"581\" src=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Print-Behaviour.png\" alt=\"Visual Basic Printing Problem 1 Legacy VB6 applications obtain the printer list from a registry key\" class=\"wp-image-75\" srcset=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Print-Behaviour.png 940w, https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Print-Behaviour-300x185.png 300w, https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Print-Behaviour-768x475.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><figcaption class=\"wp-element-caption\">Legacy VB6 applications  obtain the printer list from a registry key <\/figcaption><\/figure>\n\n\n\n<p>and each device listed in there should have a matching record in<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\PrinterPorts<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Visual Basic Printing Problem 1: Printer List Builds Up Many Copies Of Redirected Printers<\/h3>\n\n\n\n<p>Users with printers available to their local PC or laptop can use those printers from inside a Remote Desktop Session. We call these &#8220;redirected printers&#8221;. When a user logs on to a Remote Desktop Server, it creates a remote session. If we have enabled &#8220;redirected printers&#8221; in this session then Windows adds or updates values in the registry keys discussed above.<\/p>\n\n\n\n<p>Unfortunately later versions of Windows are not removing these legacy registry entries when the user logs out. Since the name of a redirected printer changes with each connection, we can see multiple copies of the same printer. For example Fax (redirected 1), Fax (redirected 2), Fax (redirected 3) etc.<\/p>\n\n\n\n<p>When users look in Windows settings or control panel they see a different list where everything works as expected. However any legacy application that depends on these registry keys may see problems with redirected printers. This legacy list can contain many hundreds of printers. Only some of which will be functional.  Some Visual Basic printing problems include print dialogue boxes that take minutes just to show a list hundreds of out of date redirected printers.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Workaround 1 \u2013 Delete the entries from the registry<\/h4>\n\n\n\n<p>Whilst it would be nice to see Microsoft fix this, there is no hint that they&#8217;re interested in doing so. Instead we can delete the registry values ourselves. First from:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Devices <\/pre>\n\n\n\n<p>and then<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\PrinterPorts<\/pre>\n\n\n\n<p>The next time a user logs on valid values will be created .<\/p>\n\n\n\n<p>Unfortunately this is only a stop gap. Windows will still add any new printers or redirected printers to the list but will not remove them.<\/p>\n\n\n\n<p>Note also that this will only fix the issue for one user at a time. Each user has their own copy of HKEY_CURRENT_USER.  So we must be carry out  the fix  for each user separately. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Workaround 2 \u2013 Disable Redirected Printers<\/h4>\n\n\n\n<p>We often leave redirected printers switched by default but they&#8217;re not always necessary. If the user\u2019s PC and the server are connected to the same network, they can print directly from the server. We can then  switch off  redirected printers by editing the user\u2019s connection settings as below. Or they can use policy settings to switch them off from the server side. <\/p>\n\n\n\n<p>Used alongside the first workaround, this may prevent these faulty registry entries from returning.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"321\" height=\"371\" src=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/redirected-printers.png\" alt=\"Visual Basic Printing Solution - Printer redirection is enabled by default but is not always needed\" class=\"wp-image-76\" srcset=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/redirected-printers.png 321w, https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/redirected-printers-260x300.png 260w\" sizes=\"(max-width: 321px) 100vw, 321px\" \/><figcaption class=\"wp-element-caption\">Printer redirection is enabled by default but is not always needed<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Workaround 3- Logout Script<\/h4>\n\n\n\n<p>If redirected printers are required, then it is possible to use group policy to set a logout script. We can use this to apply the first workaround (delete entries from the registry) each time the user logs out. Below is one example of such a logout script, using vbscript:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Const HKEY_CURRENT_USER = &amp;H80000001\non error resume next\nstrComputer = \".\"\nSet oReg=GetObject(\"winmgmts:{impersonationLevel=impersonate}!\\\" &amp; strComputer &amp; \"\\root\\default:StdRegProv\")\nstrKeyPath = \"Software\\Microsoft\\Windows NT\\CurrentVersion\\Devices\"\noReg.EnumValues HKEY_CURRENT_USER, strKeyPath, arrDevices\nFor Each device In arrDevices\nif (inStr(device,\"redirected\")) then\noReg.DeleteValue HKEY_CURRENT_USER,strKeyPath,device\nend if\nNext\nstrKeyPath = \"Software\\Microsoft\\Windows NT\\CurrentVersion\\PrinterPorts\"\noReg.EnumValues HKEY_CURRENT_USER, strKeyPath, arrPrinterPorts\nFor Each printerport In arrPrinterPorts\nif (inStr(printerport,\"redirected\")) then\noReg.DeleteValue HKEY_CURRENT_USER,strKeyPath,printerport\nend if\nNext\n<\/pre>\n\n\n\n<p>Or in powershell<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$pathlist  = 'HKCU:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Devices', 'HKCU:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\PrinterPorts'\nforeach ($p in $pathlist) {\n    $devices = get-itemproperty -path $p\n    $redirecteddevices = $devices | get-member | where-object -FilterScript {$_.name -match 'redirected'} \n    $redirecteddevices | Remove-ItemProperty -path $p\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Visual Basic Default Printer<\/h2>\n\n\n\n<p>Legacy Visual Basic applications obtain the default printer from the registry at:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\Device  <\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"940\" height=\"584\" src=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Default-Printer.png\" alt=\"Visual Basic Printing Problem 2 - Legacy VB6 applications obtain the default printer from a registry value\" class=\"wp-image-77\" srcset=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Default-Printer.png 940w, https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Default-Printer-300x186.png 300w, https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Default-Printer-768x477.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><figcaption class=\"wp-element-caption\"> Legacy VB6 applications  obtain the default printer from a registry value<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"> Visual Basic Printing Problem 1: Session Default Printers<\/h3>\n\n\n\n<p>Starting with Windows Server 2012, Microsoft introduced a new key where the system may look for a default printer. When a user logs on to a remote desktop session and has a redirected, default printer then the new key is used. We then find the default printer in the &#8220;Device&#8221; value in a subkey of :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\SessionDefaultDevices<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"940\" height=\"581\" src=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Session-Default-Devices.png\" alt=\"Visual Basic Printing Problem 2 The default printer in a remote desktop session using redirected printers may be found in within a unique key for each session\" class=\"wp-image-78\" srcset=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Session-Default-Devices.png 940w, https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Session-Default-Devices-300x185.png 300w, https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Session-Default-Devices-768x475.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><figcaption class=\"wp-element-caption\">The default printer in a remote desktop session using redirected printers may be found in within a unique key for each session<\/figcaption><\/figure>\n\n\n\n<p>The purpose of this seems to allow for more than one session existing for the same user account. Previously this would have meant that when a default printer was set for a user&#8217;s second session, it would replace the default printer in the user&#8217;s first session.<\/p>\n\n\n\n<p>The hope appears to be that the application would check for a default printer under the appropriate subkey of SessionDefaultDevices. If no such subkey is found then it would fall back to using the &#8220;Device&#8221; value from the &#8220;Windows&#8221; key :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\Device<\/pre>\n\n\n\n<p>Many legacy applications do not know to use the SessionDefaultDevices subkey. They can only look in at the device value from the Windows Key. Windows 2012 maintained backwards compatibility by updating both locations. However Windows 2016 and Windows 2019 do not do so  which leads to problems printing from Visual Basic applications using redirected printers. It means that when redirected printers are in use, legacy visual basic applications may be looking for a value that is either missing or does not represent the true default printer.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Workaround &#8211; copy default printer from Session Default Printer<\/h4>\n\n\n\n<p>Sometimes we can  reprogram applications to be aware of these changes and so maintain the &#8220;Device&#8221; value from the &#8220;Windows&#8221; key by copying it from the appropriate SessionDefaultDevices subkey.<br>Alternatively we can  carry this out  with a script:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$a = Get-ItemProperty \"HKCU:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\SessionDefaultDevices*\\\"\nif ($a.Device) {\nSet-ItemProperty -path \"HKCU:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Windows\" -name Device -Value $a.Device\nwrite-output \"Legacy Default Printer set to $($a.Device)\"\n}\nelse\n{\nwrite-output \"Default Printer is not Redirected\"\n} <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>We&#8217;ve seen two problems where using redirected printer causes Visual Basic printing problems and discussed workarounds for these issues. If you&#8217;ve seen similar issues or have your own workarounds then comments are open.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Background Applications written in Visual Basic 6, print using a standard printer object included with Visual Basic. This object includes methods to access a list of available printers or the default printer. The information that these Visual Basic methods access, ultimately comes from registry keys in the users\u2019 registry hives. It is the duty of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[6,7,5],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Two Visual Basic Printing Problems With Redirected Printers | Technical Adept<\/title>\n<meta name=\"description\" content=\"We see a variety of Visual Basic printing problems when using redirected printers with the standard printer object included with VB6\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Two Visual Basic Printing Problems With Redirected Printers | Technical Adept\" \/>\n<meta property=\"og:description\" content=\"We see a variety of Visual Basic printing problems when using redirected printers with the standard printer object included with VB6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/\" \/>\n<meta property=\"og:site_name\" content=\"Technical Adept\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-07T16:38:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-26T17:49:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Print-Behaviour.png\" \/>\n<meta name=\"author\" content=\"Matt Hardy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matt Hardy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/\"},\"author\":{\"name\":\"Matt Hardy\",\"@id\":\"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29\"},\"headline\":\"Two Visual Basic Printing Problems With Redirected Printers\",\"datePublished\":\"2020-06-07T16:38:20+00:00\",\"dateModified\":\"2025-04-26T17:49:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/\"},\"wordCount\":1007,\"publisher\":{\"@id\":\"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29\"},\"keywords\":[\"Printing\",\"Redirected Printers\",\"Visual Basic\"],\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/\",\"url\":\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/\",\"name\":\"Two Visual Basic Printing Problems With Redirected Printers | Technical Adept\",\"isPartOf\":{\"@id\":\"http:\/\/www.technicaladept.com\/#website\"},\"datePublished\":\"2020-06-07T16:38:20+00:00\",\"dateModified\":\"2025-04-26T17:49:23+00:00\",\"description\":\"We see a variety of Visual Basic printing problems when using redirected printers with the standard printer object included with VB6\",\"breadcrumb\":{\"@id\":\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.technicaladept.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Two Visual Basic Printing Problems With Redirected Printers\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.technicaladept.com\/#website\",\"url\":\"http:\/\/www.technicaladept.com\/\",\"name\":\"Technical Adept\",\"description\":\"A place to put words I might want to share\",\"publisher\":{\"@id\":\"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.technicaladept.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29\",\"name\":\"Matt Hardy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"http:\/\/www.technicaladept.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/01\/Matt-Profile-300.png\",\"contentUrl\":\"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/01\/Matt-Profile-300.png\",\"width\":300,\"height\":280,\"caption\":\"Matt Hardy\"},\"logo\":{\"@id\":\"http:\/\/www.technicaladept.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.technicaladept.com\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Two Visual Basic Printing Problems With Redirected Printers | Technical Adept","description":"We see a variety of Visual Basic printing problems when using redirected printers with the standard printer object included with VB6","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/","og_locale":"en_GB","og_type":"article","og_title":"Two Visual Basic Printing Problems With Redirected Printers | Technical Adept","og_description":"We see a variety of Visual Basic printing problems when using redirected printers with the standard printer object included with VB6","og_url":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/","og_site_name":"Technical Adept","article_published_time":"2020-06-07T16:38:20+00:00","article_modified_time":"2025-04-26T17:49:23+00:00","og_image":[{"url":"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/05\/Print-Behaviour.png"}],"author":"Matt Hardy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Matt Hardy","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/#article","isPartOf":{"@id":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/"},"author":{"name":"Matt Hardy","@id":"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29"},"headline":"Two Visual Basic Printing Problems With Redirected Printers","datePublished":"2020-06-07T16:38:20+00:00","dateModified":"2025-04-26T17:49:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/"},"wordCount":1007,"publisher":{"@id":"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29"},"keywords":["Printing","Redirected Printers","Visual Basic"],"articleSection":["Uncategorized"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/","url":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/","name":"Two Visual Basic Printing Problems With Redirected Printers | Technical Adept","isPartOf":{"@id":"http:\/\/www.technicaladept.com\/#website"},"datePublished":"2020-06-07T16:38:20+00:00","dateModified":"2025-04-26T17:49:23+00:00","description":"We see a variety of Visual Basic printing problems when using redirected printers with the standard printer object included with VB6","breadcrumb":{"@id":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.technicaladept.com\/index.php\/2020\/06\/07\/two-visual-basic-printing-problems-with-redirected-printers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.technicaladept.com\/"},{"@type":"ListItem","position":2,"name":"Two Visual Basic Printing Problems With Redirected Printers"}]},{"@type":"WebSite","@id":"http:\/\/www.technicaladept.com\/#website","url":"http:\/\/www.technicaladept.com\/","name":"Technical Adept","description":"A place to put words I might want to share","publisher":{"@id":"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.technicaladept.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"http:\/\/www.technicaladept.com\/#\/schema\/person\/f55bd44f0e2e66194706a07bafdd2e29","name":"Matt Hardy","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"http:\/\/www.technicaladept.com\/#\/schema\/person\/image\/","url":"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/01\/Matt-Profile-300.png","contentUrl":"https:\/\/www.technicaladept.com\/wp-content\/uploads\/2020\/01\/Matt-Profile-300.png","width":300,"height":280,"caption":"Matt Hardy"},"logo":{"@id":"http:\/\/www.technicaladept.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.technicaladept.com\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/posts\/74"}],"collection":[{"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":17,"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":179,"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/posts\/74\/revisions\/179"}],"wp:attachment":[{"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.technicaladept.com\/index.php\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}