AJUDA COM RELATORIOS EM CODIGOS
Qual o comando Para mandar para a impressora o relatório cesar.doc abaixo criado.
Agradeço desde já...
Open "c:\Cesar.doc" For Output As #1 ' Open file for output.
Print #1, "This is a test" ' Print text to file.
Print #1, ' Print blank line to file.
Print #1, "Zone 1"; Tab; "Zone 2" ' Print in two print zones.
Print #1, "Hello"; " "; "World" ' Separate strings with space.
Print #1, Spc(5); "5 leading spaces " ' Print five leading spaces.
Print #1, Tab(10); "Hello" ' Print word at column 10.
Close #1 ' Close file.
Agradeço desde já...
Open "c:\Cesar.doc" For Output As #1 ' Open file for output.
Print #1, "This is a test" ' Print text to file.
Print #1, ' Print blank line to file.
Print #1, "Zone 1"; Tab; "Zone 2" ' Print in two print zones.
Print #1, "Hello"; " "; "World" ' Separate strings with space.
Print #1, Spc(5); "5 leading spaces " ' Print five leading spaces.
Print #1, Tab(10); "Hello" ' Print word at column 10.
Close #1 ' Close file.
Não sei se entendi muito bem a pergunta mas se vc tiver uma impressora local vc pode abrÃ-la tal como fez com o arquivo.
Open "c:\Cesar.doc" for input as #1
Open "Lpt1:" for output as #2
input #1, Linha 'busca a linha do arquivo
print #2, Linha 'imprime a mesma linha na impressora
...
Open "c:\Cesar.doc" for input as #1
Open "Lpt1:" for output as #2
input #1, Linha 'busca a linha do arquivo
print #2, Linha 'imprime a mesma linha na impressora
...
Tópico encerrado , respostas não são mais permitidas