cj,
Can you try this link
news://msnews.microsoft.com/microsoft.public.office.developer.automation
And please tell us if it did work
Cor
"cj2" <
[email protected]> schreef in bericht
Thanks, that's what I needed. I understand what you mean by
exporting to pdf. Word then feels like it isn't saved and wants to
save it upon exiting. I could not figure out the options for
close() but they make sense now.
Also thanks to you and Cor for pointing out
Microsoft.public.office.developer.automation and the list of groups.
Actually this makes me wonder if there is a better way to access
these groups? Right now I'm using Mozilla Thunderbird and subscribe
to microsoft.public.dotnet.languages.vb for example. I like that I
can mark post Ignore and I don't see them leaving only a list of
those threads I am interested in. I leave them in Thunderbird so I
can refer back to them later if I forget. I don't like that after
about 3 months the threads only display that the article has
expired. My only workaround is going to Google NewsGroups and
searching for the group then for the subject of thread. They still
have it.
Jialiang Ge [MSFT] wrote:
Hello CJ,
Saving a Word document as PDF (SaveAs WdSaveFormat.wdFormatPDF)
behaves differently from saving the document as Word format, e.g.
docx/doc. Let's first look at the resolution of the issue, then I
will explain "WHY".
*** RESOLUTION ***
Change the code line objDoc.Close()
to objDoc.Close(false)
In other words, we pass false to the param "SaveChange" of the
Close method, to discard the change of the Word document.
*** CAUSE ***
In fact, this code line only *exports* the current Word document to
a PDF file:
objDoc.SaveAs("c:\test\" & row.Item("custno") & "Collection",
WdSaveFormat.wdFormatPDF)
It does not save the current Word document. Therefore, we get a
SaveAs dialog when we close the document with objDoc.Close()
Please try the solution and let me know whether it's helpful to you
or not.
P.S. As Cor suggested, a more proper newsgroup for this Office
automation issue is microsoft.public.office.developer.automation
For the list of the managed newsgroups, please refer to the page
http://msdn.microsoft.com/en-us/subscriptions/aa974230.aspx
Regards,
Jialiang Ge (
[email protected], remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the support we
provide to you. Please feel free to let my manager know what you
think of the level of service provided. You can send feedback
directly to my manager at: (e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues where an initial response from the community or a Microsoft
Support Engineer within 1 business day is acceptable. Please note
that each follow up response may take approximately 2 business days
as the support professional working with you may need further
investigation to reach the most efficient resolution. The offering
is not appropriate for situations that require urgent, real-time or
phone-based interactions or complex project analysis and dump
analysis issues. Issues of this nature are best handled working
with a dedicated Microsoft Support Engineer by contacting Microsoft
Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.