Domino 9 und frühere Versionen > Entwicklung

mittels LS den Inhalt einer Variable ausdrucken

(1/3) > >>

jens1979:
Hallo,

gibt es eine Möglichkeit mittels LS den Inhalt einer Variable (String) auf den Drucker umzuleiten?

Danke schonmal

Jens

koehlerbv:
Mit Bordmitteln: Nein. Dafür müsstest Du Dir (notes-typisch) eine Maske basteln und mit deren Hilfe dann ... aber das ist ja bestimmt nicht, was Du willst.

Bernhard

jens1979:
ne das ist es nicht ganz ... aber danke erstmal ...
Ist es vieleicht möglich den Inhalt in eine Datei zu schreiben ... so das der User sich den Inhalt wenigstens etwas Umständlich ausdrucken könnte?

Jens

koehlerbv:
Das ist ohne weiteres möglich.

Such mal im Forum nach freefile - da findest Du dann auch Code Snippets.

Bernhard

eknori:
oder in der Designer Hilfe

Dim nVar As Variant, eVar As Variant
nVar = NULL
Dim fileNum As Integer
fileNum% = FreeFile()
Open "printext.txt" For Output As fileNum%
' Print two lines to the file and close it.
' First line: two String values, with no separation between.
Print #fileNum%, "First line, " ; "with two String items"
' Second line: NULL value, EMPTY value, Integer variable
' value, and String value, separated on the line by tabs.
Print #fileNum%, nVar, eVar, fileNum%, "at next tab"
Close fileNum%
' Open the file, print it, and close the file.
Dim text As String
Open "printext.txt" For Input As fileNum%
Do Until EOF(fileNum%)
   ' Read and print to console, one line at a time.
   Line Input #fileNum%, text$
   Print text$
Loop
Close fileNum%
' Output:
' First line, with two String items
' NULL                      1            at next tab

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln