July 12th, 2013, 07:09 AM
I found the problem.
Because after I printed the report, I used Unload DataReport. And it was printed only first page of the Data report. I removed this instructions and all work fine.
November 18th, 2012, 04:51 PM
Problem is because I send Data Report as a parameter to a function (as Object)Only in this case it prints only first page. Any ideea to resolve the problem?
Thanks!
November 18th, 2012, 06:07 AM
Hello!
I made a Data Report and I want to print using DataReport.PrintReport False.
Even the report has many pages, it is print only first page. I tries to use rptRangeFromTo or rptRangeAllPages,...
November 6th, 2011, 03:37 AM
l solved the problem.
I run the macro from VB6 with parameters and I replace the fields with variables in the word template.
Have a nice day!
November 6th, 2011, 02:21 AM
Initially, Word is close, but I open it:
On Error Resume Next
Set docApp = GetObject(, "Word.Application")
If Err.Number <> 0 Then
Set docApp = New Word.Application
Err.Clear
End If
November 5th, 2011, 11:45 AM
Hi!
I write a function where I create Word documents from a word template, completing some fields with data.
All work perfectly, but if i run that function again, the files are created again, but...