Fórum Bug #145908
15/03/2003
0
Obrigado
Pedro Leonardo
Anonymous
Curtir tópico
+ 0Posts
15/03/2003
Leao
Que o projeto eu já utilizava ele em um outro sistema, a unica modificação que eu fiz foi o nome da empresa no QR.
Depois de alterar o nome ficou estar merda...
My page, acesse : http://instrutor.cjb.net/
Gostei + 0
16/03/2003
Carnette
Obrigado
Pedro Leonardo[/quote:7958f2b997]
Olá amigo
Voce poderia colocar o código que voce chama o seu preview e tbm me dizer se, o FORM que chama o preview é modalou não
Gostei + 0
17/03/2003
Anonymous
SEGUE O CODIGO...
procedure TFrmRecibo.btnVisualizarClick(Sender: TObject);
var where:String;
begin
if DBGrid1.SelectedRows.Count <= 0 then
begin
ShowMessage(´Selecione o(s) Recibos(s) para visualizar...´);
Exit;
end;
Where := ´´;
DBGrid1.DataSource.DataSet.DisableControls;
DBGrid1.DataSource.DataSet.First;
while not DBGrid1.DataSource.DataSet.Eof do
begin
if DBGrid1.SelectedRows.CurrentRowSelected then
begin
if Where <> ´´ then
Where := Where+´,´;
Where := Where+DBGrid1.DataSource.DataSet.FieldByName(´Cod´).AsString;
end;
DBGrid1.DataSource.DataSet.Next;
end;
Where := ´Cod IN (´+Where+´)´;
DBGrid1.DataSource.DataSet.EnableControls;
with QueryAuxiliar do
begin
QueryAuxiliar.Close;
QueryAuxiliar.SQL.Text := ´SELECT * FROM Comprove WHERE ´+Where;
QueryAuxiliar.Prepare;
QueryAuxiliar.Open;
end;
QueryAuxiliar.First;
QRRecibo.Prepare;
QRRecibo.preview; // (ou Print)
end;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)