Source language: Translate to:

Stampante problemi.

Discussioni in Italiano di NeoBook

Moderator: systems.it

Stampante problemi.

Postby gigisat60 » Tue Sep 16, 2014 6:12 am

Ho creato una applicazione che permette la stampa su 2 dispositivi di stampanti diverse, esegue una prima stampa su di etichette su una stampante di etichette, e poi una stampa di un foglio su una stampante normale, il problema e questo dopo aver stampato etichetta non mi stampa il foglio sulla seconda stampante, per farlo funzionare devo necessariamente spegnere il programma e riavviarlo per poi ristampare il foglio. Avete soluzioni? Grazie.
gigisat60
 
Posts: 46
Joined: Wed Mar 04, 2009 7:38 am

Re: Stampante problemi.

Postby dec » Tue Sep 16, 2014 7:55 am

Ciao,

Forse si vuole dare un'occhiata a queste tre azioni dal mio plug npUtil:

+ npGetPrintersList

+ npGetDefaultPrinter

+ npSetDefaultPrinter

MA comunque dare un'occhiata a questo thread del forum.

---

Maybe you want to take a look at these three actions from my npUtil plugin:

+ npGetPrintersList

+ npGetDefaultPrinter

+ npSetDefaultPrinter

BUT anyway take a look at this forum thread.
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Re: Stampante problemi.

Postby virger » Wed Sep 17, 2014 9:36 pm

Da COSTA RICA.
Ciao ...
Forse questo aiuterà il codice qui o sul link associato
Code: Select all
NBW Publication Source File
(C)2014 NeoSoft Corp.
Title=Printers-Control
Author=GdoSan/Set-17/2014
Language=US
NeoBookVer=5.80
ScreenColors=16777216
ScreenWidth=575
ScreenHeight=180
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=31
BiDiMode=0
UseUpdateTimer=Yes
ReturnTime=60
SubroutineAction=:ListPrinters¶setvar "[CR]" "[#13][#10]"¶FileRead "[PubDir]ClipBoard" "All" "[vLst]"¶StrParse "[vLst]" "Server name" "[vData]" "[nDt]"¶ListBoxDeleteItem "LstPrinter" "All"¶loop "2" "[nDt]" "[c]"¶    strparse "[vData[c]]" "[CR]" "[Dt]" "[x]"¶    substr "[Dt2]" "14" "999" "[Dt2]"¶    ListBoxAddItem "LstPrinter" "0" "[Dt2]"¶    deletearray "[Dt]" "All"¶endloop¶Return
ShapeTransColor=536870912
SplashProps=3
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
Variables=[#10]¶[#13]¶[Accion]¶[c]¶[Data]¶[ec]¶[Linea]¶[Lst]¶[n]¶[num]¶[oki1]¶[oki2]¶
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
ReqExLevel=1
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That's not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That's not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files...
L_SENDEMAIL=Sending Mail...
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait...
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=Main
PageStyle=1
PageColor=16777215
PageGradient1=15740928
PageGradient2=11073768
PageGradientDir=1
WallpaperStyle=0
EffectSpeed=0
PgEnterAction=filewrite "[PubDir]Bat.Bat" "All" "cscript.exe prnmngr.vbs -l > ClipBoard"¶Run "Bat.bat" "" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""¶GoSub "ListPrinters"¶¶filewrite "[PubDir]Bat.Bat" "All" "cscript.exe prnmngr.vbs -g > ClipBoard"¶Run "Bat.bat" "" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""¶FileRead "[PubDir]ClipBoard" "4" "[CurPrinter]"
ObjectType=10
Name=LstPrinter
X=214
Y=0
W=360
H=111
Anchor=0
Text=[Lst]
VarName=[Printer]
VarType=0
XPTheme=Yes
ObjAction=setvar "[vDt]" "[Printer]"
ObjEnterAction=setvar "[Msg]" "Selected"
ObjExitAction=setvar "[Msg]" ""
LineColor=0
LineWidth=1
LineStyle=0
FillColor=15592941
FillPattern=0
Font=Arial
FontSize=11
FontStyle=3
FontCharset=1
TextColor=0
TabOrder=1
ObjectType=10
Name=LstMenu
X=16
Y=23
W=149
H=53
Anchor=0
Text=List Printers¶Get Default Printer¶Set Default Printer¶
VarName=[Accion]
VarType=1
XPTheme=Yes
ObjAction=setvar "[Msg]" ""
DblClick=ifex "[vDt]=[#34][#34] AND [Accion]=3"¶    AlertBox "ALERT" "PLEASE SELECT A||       'PRINTER'"¶    Gotoline "Fin"¶Endif¶strparse "-l.-g.-t -p [#34][Printer][#34]" "." "[Cmd]" "[x]"¶filewrite "[PubDir]Bat.Bat" "All" "cscript.exe prnmngr.vbs [Cmd[Accion]] > ClipBoard"¶Run "Bat.bat" "" "RunOnce+Wait+LoadComplete+Minimized+Hidden" "" ""¶¶gotoline "Execute[Accion]"¶¶:Execute1¶GoSub "ListPrinters"¶Gotoline "Fin"¶¶:Execute3¶¶:Execute2¶FileRead "[PubDir]ClipBoard" "4" "[vDt]"¶setvar "[Msg]" "Result"¶if "[Accion]" "=" "3"¶    setvar "[CurPrinter]" "[vDt]"¶endif¶:Fin
LineColor=0
LineWidth=1
LineStyle=0
FillColor=15592941
FillPattern=0
Font=Arial
FontSize=11
FontStyle=3
FontCharset=1
TextColor=0
TabOrder=2
ObjectType=8
Name=TxDat
X=81
Y=112
W=493
H=32
Anchor=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs24\cf0 [vDt]}}¶}
HMargin=2
VMargin=2
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14737656
FillPattern=0
TabOrder=5
ObjectType=8
Name=TxMsg
X=0
Y=113
W=77
H=28
Anchor=0
Font=Arial
FontSize=12
FontStyle=1
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\qr\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs24\cf0\b [Msg]}}¶}
HMargin=4
VMargin=2
LineColor=0
LineWidth=0
LineStyle=0
FillColor=15268064
FillPattern=1
TabOrder=6
ObjectType=8
Name=TxCurPr
X=81
Y=146
W=493
H=32
Anchor=0
Font=Arial
FontSize=14
FontStyle=2
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\colortbl\red0\green0\blue0;\red255\green0\blue0;\red0\green128\blue0;\red0\green0\blue255;\red255\green255\blue0;\red255\green0\blue255;\red128\green0\blue128;\red128\green0\blue0;\red0\green255\blue0;\red0\green255\blue255;\red0\green128\blue128;\red0\green0\blue128;\red255\green255\blue255;\red192\green192\blue192;\red128\green128\blue128;\red0\green0\blue0;\red0\green0\blue0;}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\margh720\margf720{\*\pnseclvl1\pnucrm\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl2\pnucltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl3\pndec\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{.}}}¶{\*\pnseclvl4\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb}{\pntxta{)}}}¶{\*\pnseclvl5\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl6\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl7\pnlcrm\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl8\pnlcltr\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶{\*\pnseclvl9\pndec\pnstart1\pnhang\pnindent720{\pntxtb{(}}{\pntxta{)}}}¶\endnhere\sectdefaultcl{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs28\cf0\i [CurPrinter]}}¶}
HMargin=2
VMargin=2
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14219496
FillPattern=0
TabOrder=4
ObjectType=8
Name=Text5
X=43
Y=-183
W=360
H=118
Anchor=0
Font=Arial
FontSize=10
FontStyle=3
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0\b\i Si hay problema con el archivo:\par\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0\b\i \tab \tab \plain\f0\fs20\cf0\b\ul\i prnmngr.vbs\par\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0\b\i o con este \tab \par\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0\b\i \tab \tab \tab \tab \plain\f0\fs20\cf0\b\ul\i cscript.exe\par\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0\b\i \tab lo bajas de este link:\par\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs20\cf0\b\i \tab \tab \plain\f0\fs22\cf0\b\ul https://www.mediafire.com/?y7bojicfc5ffuvc}}}
HMargin=5
VMargin=5
LineColor=0
LineWidth=1
LineStyle=0
FillColor=15592941
FillPattern=0
TabOrder=7



http://www.mediafire.com/download/agoht ... ThePub.zip

https://www.mediafire.com/?y7bojicfc5ffuvc


Grazie per la lettura

Siamo Pura Vida
COSTA RICA
PURA VIDA
User avatar
virger
 
Posts: 524
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central


Return to NeoBook in Italiano

Who is online

Users browsing this forum: No registered users and 1 guest