1469c Printer change code (Mr. A. Kallal)
Sign Up |  Live StatsLive Stats    Articles 37,330| Comments 177,262| Members 19,413, Newest psgujral| Online 448
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Printer change code (Mr. A. Kallal)

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Setting Printer to User's default printer Connie Information Technology 2 28-Jul-2006 08:40 AM
Change Visible Property of Report Label with Message Box Code TKD Information Technology 4 28-Jul-2006 08:29 AM
To Albert D. Kallal- Multiselect list box question serviceman via AccessMonster.com Information Technology 7 28-Jul-2006 08:03 AM
Dynamically change design view from within VB code Jack Information Technology 2 05-Nov-2005 12:48 PM
Re: Albert Kallal - Merge to Word PMK Information Technology 0 28-Oct-2005 17:59 PM


Tags
printer, change, code, kallal
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 26-Oct-2005, 16:09 PM
Mike's Avatar Mike
Guest
 
Posts: n/a
   
   
Printer change code (Mr. A. Kallal)

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi,

While doing a websearch on changing printers for Access 2000 I came
across your site and downloaded your code (printch2k) and implemented
it into my program.

All works fine accept the return to the default printer, it does not
work in my case, there is no default printer set after the code is run
if I look at the printersection! So afterwards I have to manually set
the defaultprinter again.

My guess the problem is the writing to the win.ini file, because I see
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/5816-printer-change-code-mr-a-kallal.html
nothing of a device in that file? I use windowsXP and Access 2000,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=5816
could that be a problem?

Any help much appreciated,

Thanks, Mike



Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 27-Oct-2005, 08:58 AM
Albert D.Kallal's Avatar Albert D.Kallal
Guest
 
Posts: n/a
   
   
Re: Printer change code (Mr. A. Kallal)

yes, I seen that problem of the "default" printer going away. I believe that
the default printer is still set, but the "icon" does not show as such...

That code was/is designed to run on windows 95, 98, and thus it not the best
for windows XP (it does work as you note).
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=5816

With a2002 and later, there is a built in printer object, and thus you don't
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=5816
need my code anymore..

I don't have a solution to your problem, but it been a while since I looked
at that code.

You could try removing the code that is supposed "prevent this" problem.

So, try commenting out the

Call SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, ByVal "windows")

The above updates windows to show the correct default printer. Since you are
switching back, then remove the above line...it might fix your problem
because less effort will be made to show the "new" default printer that you
only use for a short time......


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
http://www.members.shaw.ca/AlbertKallal


Reply With Quote
  #3 (permalink)  
Old 27-Oct-2005, 08:58 AM
Mike's Avatar Mike
Guest
 
Posts: n/a
   
   
Re: Printer change code (Mr. A. Kallal)

  Donate Today!  
Thanks for the respons, already tried to remove that line but no luck!

I however managed to get my problem fixed with a combination of your
code and the code on

http://support.microsoft.com/kb/266767/EN-US

Don't know how it wokrs, but it works!

But thanks again,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=5816

Mike

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Occultism - Rejection in...
Today 14:04 PM
59 Replies, 2,582 Views
How does Sikhi help you...
Today 13:57 PM
24 Replies, 905 Views
Panjabi
By Ishna
Today 13:43 PM
14 Replies, 282 Views
Do you believe in...
Today 10:22 AM
195 Replies, 4,069 Views
Black Sikhs?
Today 06:33 AM
20 Replies, 5,788 Views
Man Driving Without...
Today 05:06 AM
5 Replies, 133 Views
Request for assistance...
Today 04:24 AM
8 Replies, 86 Views
Losing My Religion: Why...
Today 03:03 AM
13 Replies, 346 Views
Health Exercise And...
Today 02:10 AM
1 Replies, 89 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 02:10 AM
176 Replies, 4,511 Views
How Religions Change...
Today 02:07 AM
1 Replies, 105 Views
Keeping Amrit Vela
Today 01:57 AM
11 Replies, 898 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:52 AM
313 Replies, 7,596 Views
Parkash Guru Amar Das ji...
Yesterday 17:07 PM
3 Replies, 80 Views
Serious challenges to...
Yesterday 16:49 PM
0 Replies, 143 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 15:07 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.82503 seconds with 32 queries
0