🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.vbasic
2 messages
2 total messages Started by Romek Tue, 19 Jun 2012 10:48
VB.Net i druk do LPT1
#104897
Author: Romek
Date: Tue, 19 Jun 2012 10:48
19 lines
1417 bytes
Witam!
Próbuję wydrukować coś do LPT1 i nie mogę sobie poradzić.
Następująca instrukcja wywala mi błąd:
FileOpen(1, "lpt1", OpenMode.OutPut)

Podobna instrukcja w C++ działa poprawnie:
FILE *fp=FOpen("lpt1", "w");
fpritf(fp, "What's up, Doc?\n");
fclose(fp);

W VBA instrukcja działa też bez zarzutu:
Open "lpt1" For Output As #1
Write #1, "Ala ma kota"
Close #1

Korzystam z VS2005.

Pozdrawiam
Romek
Re: VB.Net i druk do LPT1
#104898
Author: InDesign Scripts
Date: Tue, 19 Jun 2012 11:42
18 lines
1687 bytes
> Próbuję wydrukować coś do LPT1 i nie mogę sobie poradzić.
> Następująca instrukcja wywala mi błąd:
> FileOpen(1, "lpt1", OpenMode.OutPut)

Google zdechły ? ;)

https://www.google.co.uk/search?hl=en-GB&q=FileOpen%281%2C+%22lpt1%22%2C+OpenMode.OutPut%29&sourceid=navclient-ff&rlz=1B3GGLL_plGB360GB360&ie=UTF-8

http://www.pcreview.co.uk/forums/printing-lpt1-driving-me-nuts-t2178398.html
http://www.tek-tips.com/viewthread.cfm?qid=1257266
http://forums.asp.net/t/371754.aspx/1
http://support.microsoft.com/default.aspx?scid=kb;en-us;823179
http://www.codeproject.com/Articles/14710/Zebra-EPL2-Printing-in-Net
http://msdn.microsoft.com/en-us/vstudio//bb219077.aspx

etc. etc. ;)

robin
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads